public final class TemplateViewProcessor extends Object implements ViewProcessor<String>
Constructor and Description |
---|
TemplateViewProcessor(TemplateProcessor tp) |
Modifier and Type | Method and Description |
---|---|
String |
resolve(String name)
Resolve a template name to a template reference.
|
void |
writeTo(String t,
Viewable viewable,
OutputStream out)
Process a template and write the result to an output stream.
|
public TemplateViewProcessor(TemplateProcessor tp)
public String resolve(String name)
ViewProcessor
resolve
in interface ViewProcessor<String>
name
- the template namepublic void writeTo(String t, Viewable viewable, OutputStream out) throws IOException
ViewProcessor
writeTo
in interface ViewProcessor<String>
t
- the template reference. This is obtained by calling the
ViewProcessor.resolve(java.lang.String)
method with a template name.viewable
- the viewable that contains the model to be passed to the
template.out
- the output stream to write the result of processing the
template.IOException
- if there was an error processing the
template.Copyright © 2017 Oracle Corporation. All rights reserved.