org.springframework.extensions.webscripts
Class ClientUrlFunctionMethod

java.lang.Object
  extended by org.springframework.extensions.webscripts.ClientUrlFunctionMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public final class ClientUrlFunctionMethod
extends Object
implements freemarker.template.TemplateMethodModelEx

Author:
David Caruana Custom FreeMarker Template language method.

Render a client side javascript function to build urls to this service.

Usage: clientUrlFunction(String funcName)


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ClientUrlFunctionMethod(WebScriptResponse res)
          Construct
 
Method Summary
 Object exec(List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientUrlFunctionMethod

public ClientUrlFunctionMethod(WebScriptResponse res)
Construct

Method Detail

exec

public Object exec(List args)
            throws freemarker.template.TemplateModelException
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Throws:
freemarker.template.TemplateModelException
See Also:
TemplateMethodModel.exec(java.util.List)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.