Class FormatWriterMethod
java.lang.Object
org.springframework.extensions.webscripts.FormatWriterMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel
public final class FormatWriterMethod
extends Object
implements freemarker.template.TemplateMethodModelEx
Custom FreeMarker Template language method.
Render object to mimetype of web script template. If object cannot be serialized to mimetype then no output is written.
Usage: formatwrite(object) Where: object => object to write
- Author:
- davidc
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FormatWriterMethod
Construct
-
-
Method Details
-
exec
- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException
-