com.sun.jersey.server.impl.template
Class TemplateViewProcessor
java.lang.Object
com.sun.jersey.server.impl.template.TemplateViewProcessor
- All Implemented Interfaces:
- ViewProcessor<String>
public final class TemplateViewProcessor
- extends Object
- implements ViewProcessor<String>
- Author:
- Paul.Sandoz@Sun.Com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateViewProcessor
public TemplateViewProcessor(TemplateProcessor tp)
resolve
public String resolve(String name)
- Description copied from interface:
ViewProcessor
- Resolve a template name to a template reference.
- Specified by:
resolve
in interface ViewProcessor<String>
- Parameters:
name
- the template name
- Returns:
- the template reference, otherwise null
if the template name cannot be resolved.
writeTo
public void writeTo(String t,
Viewable viewable,
OutputStream out)
throws IOException
- Description copied from interface:
ViewProcessor
- Process a template and write the result to an output stream.
- Specified by:
writeTo
in interface ViewProcessor<String>
- Parameters:
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.
- Throws:
IOException
- if there was an error processing the
template.
Copyright © 2013 Oracle Corporation. All Rights Reserved.