Class ClientIpAddressDirective

java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.directives.ClientIpAddressDirective
All Implemented Interfaces:
Nice2TemplateDirective, TemplateIdentifiers, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class ClientIpAddressDirective extends Object implements Nice2TemplateDirective, TemplateIdentifiers
Template Directive to load the IP address of the client by use of RequestContext.
  • Constructor Details

    • ClientIpAddressDirective

      public ClientIpAddressDirective()
  • Method Details

    • execute

      public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException