public final class TemplateViewProcessor extends Object implements ViewProcessor<String>
Constructor and Description |
---|
TemplateViewProcessor(TemplateProcessor tp) |
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 © 2013 Oracle Corporation. All rights reserved.