public class JSPTemplateProcessor extends java.lang.Object implements ViewProcessor<java.lang.String>
| Constructor and Description |
|---|
JSPTemplateProcessor(ResourceConfig resourceConfig) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolve(java.lang.String path)
Resolve a template name to a template reference.
|
void |
writeTo(java.lang.String resolvedPath,
Viewable viewable,
java.io.OutputStream out)
Process a template and write the result to an output stream.
|
public JSPTemplateProcessor(@Context ResourceConfig resourceConfig)
public java.lang.String resolve(java.lang.String path)
ViewProcessorresolve in interface ViewProcessor<java.lang.String>path - the template namepublic void writeTo(java.lang.String resolvedPath,
Viewable viewable,
java.io.OutputStream out)
throws java.io.IOException
ViewProcessorwriteTo in interface ViewProcessor<java.lang.String>resolvedPath - 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.java.io.IOException - if there was an error processing the
template.Copyright © 2015 Oracle Corporation. All Rights Reserved.