Class URLDecodeMethod

All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel, org.alfresco.processor.ProcessorExtension, TemplateProcessorExtension

public class URLDecodeMethod extends BaseTemplateProcessorExtension implements freemarker.template.TemplateMethodModelEx
Since:
4.2 Custom FreeMarker Template language method.

Decodes a URL encoded string. The empty string is returned for invalid input values.

Usage: urldecode(String s)

Author:
Kevin Roast
  • Constructor Details

    • URLDecodeMethod

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