Class FreemarkerRequestUtil

java.lang.Object
org.apache.tiles.request.freemarker.FreemarkerRequestUtil

public final class FreemarkerRequestUtil extends Object
Utilities to work with Freemarker requests.
  • Method Details

    • getRequestHashModel

      public static freemarker.ext.jakarta.servlet.HttpRequestHashModel getRequestHashModel(freemarker.core.Environment env)
      Returns the HTTP request hash model.
      Parameters:
      env - The current FreeMarker environment.
      Returns:
      The request hash model.
    • getServletContextHashModel

      public static freemarker.ext.jakarta.servlet.ServletContextHashModel getServletContextHashModel(freemarker.core.Environment env)
      Returns the servlet context hash model.
      Parameters:
      env - The current FreeMarker environment.
      Returns:
      The servlet context hash model.
    • getApplicationContext

      public static ApplicationContext getApplicationContext(freemarker.core.Environment env)
      Returns the application context. It must be first saved creating an ApplicationContext and using ApplicationAccess.register(ApplicationContext).
      Parameters:
      env - The Freemarker environment.
      Returns:
      The