Class VelocityRepresentation
java.lang.Object
is.galia.resource.VelocityRepresentation
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityRepresentation
(String templateName) VelocityRepresentation
(String templateName, Map<String, Object> templateVars) VelocityRepresentation
(String templateName, Map<String, Object> escapableTemplateVars, Map<String, Object> nonEscapableTemplateVars) -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(OutputStream outputStream) Writes some kind of data (image data, HTML, JSON, etc.) to the given response stream for transmission to the client.
-
Constructor Details
-
VelocityRepresentation
- Parameters:
templateName
- Template pathname, with leading slash.
-
VelocityRepresentation
-
VelocityRepresentation
public VelocityRepresentation(String templateName, Map<String, Object> escapableTemplateVars, Map<String, Object> nonEscapableTemplateVars) - Parameters:
templateName
- Template pathname, with leading slash.escapableTemplateVars
- Template variables, which will be escaped.nonEscapableTemplateVars
- Template variables, which will not be escaped.
-
-
Method Details
-
write
Description copied from interface:Representation
Writes some kind of data (image data, HTML, JSON, etc.) to the given response stream for transmission to the client.- Specified by:
write
in interfaceRepresentation
- Parameters:
outputStream
- Stream to write to, which should not be closed.- Throws:
IOException
-