Class ScriptUrlMethod
java.lang.Object
org.springframework.extensions.webscripts.ScriptUrlMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel
public final class ScriptUrlMethod
extends Object
implements freemarker.template.TemplateMethodModelEx
Custom FreeMarker Template language method.
Render script url independent of script hosting environment e.g. render inside / outside portal.
Usage: scripturl(String url)
- Author:
- davidc
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ScriptUrlMethod
Construct- Parameters:
req- WebScriptRequestres- WebScriptResponse
-
-
Method Details
-
exec
- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException- See Also:
-
TemplateMethodModel.exec(java.util.List)
-