|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.server.impl.container.servlet.JSPTemplateProcessor
public class JSPTemplateProcessor
A JSP template processor.
Constructor Summary | |
---|---|
JSPTemplateProcessor(ResourceConfig resourceConfig)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSPTemplateProcessor(@Context ResourceConfig resourceConfig)
Method Detail |
---|
public java.lang.String resolve(java.lang.String path)
ViewProcessor
resolve
in interface ViewProcessor<java.lang.String>
path
- the template name
public void writeTo(java.lang.String resolvedPath, Viewable viewable, java.io.OutputStream out) throws java.io.IOException
ViewProcessor
writeTo
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |