| org.restlet.resource.OutputRepresentation org.restlet.ext.freemarker.TemplateRepresentation
TemplateRepresentation | public class TemplateRepresentation extends OutputRepresentation (Code) | | FreeMarker template representation. Useful for dynamic string-based
representations.
See Also: FreeMarker home page author: Jerome Louvel (contact@noelios.com) |
TemplateRepresentation | public TemplateRepresentation(String templateName, Configuration config, Object dataModel, MediaType mediaType)(Code) | | Constructor.
Parameters: templateName - The FreeMarker template's name. The full path is resolved bythe configuration. Parameters: config - The FreeMarker configuration. Parameters: dataModel - The template's data model. Parameters: mediaType - The representation's media type. |
getDataModel | public Object getDataModel()(Code) | | Returns the template's data model.
The template's data model. |
setDataModel | public Object setDataModel(Object dataModel)(Code) | | Sets the template's data model.
Parameters: dataModel - The template's data model. The template's data model. |
write | public void write(OutputStream outputStream) throws IOException(Code) | | Writes the datum as a stream of bytes.
Parameters: outputStream - The stream to use when writing. |
|
|