org.springframework.extensions.webscripts
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
Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatWriterMethod
public FormatWriterMethod(FormatRegistry formatRegistry,
String format)
- Construct
- Parameters:
abdera
-
exec
public Object exec(List args)
throws freemarker.template.TemplateModelException
- Specified by:
exec
in interface freemarker.template.TemplateMethodModel
- Throws:
freemarker.template.TemplateModelException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.