|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ViewProcessor
public interface TemplateProcessor
A template processor.
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).
Method Summary | |
---|---|
String |
resolve(String name)
Deprecated. see ViewProcessor |
void |
writeTo(String fullyQualifedName,
Object model,
OutputStream out)
Deprecated. see ViewProcessor |
Method Detail |
---|
String resolve(String name)
ViewProcessor
name
- the template name
void 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |