Class ResourceUrlMethod

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

public final class ResourceUrlMethod extends Object implements freemarker.template.TemplateMethodModelEx
Custom FreeMarker Template language method.

Render resource url independent of script hosting environment e.g. render inside / outside a portal or within a Surf app.

Usage: resourceurl(String url)

Author:
davidc, muzquiano
  • Constructor Details

  • Method Details

    • exec

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