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