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 java.lang.Object implements freemarker.template.TemplateMethodModelExCustom 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
-
-
Constructor Summary
Constructors Constructor Description FormatWriterMethod(FormatRegistry formatRegistry, java.lang.String format)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexec(java.util.List args)
-
-
-
Constructor Detail
-
FormatWriterMethod
public FormatWriterMethod(FormatRegistry formatRegistry, java.lang.String format)
Construct
-
-
Method Detail
-
exec
public java.lang.Object exec(java.util.List args) throws freemarker.template.TemplateModelException- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException
-
-