Package org.apache.tiles.request.freemarker

# Class FreemarkerRequestUtil

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

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ApplicationContext`
  `getApplicationContext(freemarker.core.Environment env)`
  Returns the application context.
  `static freemarker.ext.jakarta.servlet.HttpRequestHashModel`
  `getRequestHashModel(freemarker.core.Environment env)`
  Returns the HTTP request hash model.
  `static freemarker.ext.jakarta.servlet.ServletContextHashModel`
  `getServletContextHashModel(freemarker.core.Environment env)`
  Returns the servlet context hash model.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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