org.springframework.extensions.webscripts
Class AbsoluteUrlMethod
java.lang.Object
org.springframework.extensions.webscripts.AbsoluteUrlMethod
- All Implemented Interfaces:
- freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel
public final class AbsoluteUrlMethod
- extends Object
- implements freemarker.template.TemplateMethodModelEx
- Author:
- David Caruana
Custom FreeMarker Template language method.
Render absolute url for the specified url (only if the url isn't already absolute).
Usage: absurl(String url)
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 |
AbsoluteUrlMethod
public AbsoluteUrlMethod(String basePath)
- Construct
- Parameters:
basePath
- base path used to construct absolute url
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.