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 |
---|---|
String |
resolve(String name)
Deprecated.
see
ViewProcessor |
void |
writeTo(String fullyQualifedName,
Object model,
OutputStream out)
Deprecated.
see
ViewProcessor |
String resolve(String name)
ViewProcessor
name
- the template namevoid writeTo(String fullyQualifedName, Object model, OutputStream out) throws 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.IOException
- if there was an error processing the
template.Copyright © 2013 Oracle Corporation. All rights reserved.