Class UrlEncodeMethod

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

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

Encode a URL Path.

Usage: pathencode(String url)

  • Constructor Details

    • UrlEncodeMethod

      public UrlEncodeMethod()
  • 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)