ViewProcessor
public interface TemplateProcessor
NOTE that this interface has been deprecated, instead use the
ViewProcessor
interface.
Implementations of this interface shall be capable of resolving a template name into a fully qualified template name that identifies a template supported by the implementation. And, processing the template, identified by the fully qualified template name, the results of which are written to an output stream.
Implementations can register a template processor as a provider, for
example, annotating the implementation class with Provider
or registering an instance as a singleton with ResourceConfig
or Application
.
Such template processors could be JSP template processors (supported by the Jersey servlet and filter implementations) or say Freemarker or Velocity template processors (not implemented).
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolve(java.lang.String name)
Deprecated.
see
ViewProcessor |
void |
writeTo(java.lang.String fullyQualifedName,
java.lang.Object model,
java.io.OutputStream out)
Deprecated.
see
ViewProcessor |
java.lang.String resolve(java.lang.String name)
ViewProcessor
name
- the template namevoid writeTo(java.lang.String fullyQualifedName, java.lang.Object model, java.io.OutputStream out) throws java.io.IOException
ViewProcessor
fullyQualifedName
- the fully qualified template name identifying a
template. This is obtained by calling the resolve method with a
template name.model
- 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 © 2016 Oracle Corporation. All Rights Reserved.