org.apache.tiles.request.freemarker
Class FreemarkerRequestUtil

Package class diagram package FreemarkerRequestUtil
java.lang.Object
  extended by org.apache.tiles.request.freemarker.FreemarkerRequestUtil

public final class FreemarkerRequestUtil
extends Object

Utilities to work with Freemarker requests.

Version:
$Rev: 1306435 $ $Date: 2012-03-28 11:39:11 -0400 (Wed, 28 Mar 2012) $

Method Summary
static ApplicationContext getApplicationContext(freemarker.core.Environment env)
          Returns the application context.
static freemarker.ext.servlet.HttpRequestHashModel getRequestHashModel(freemarker.core.Environment env)
          Returns the HTTP request hash model.
static freemarker.ext.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 Detail

getRequestHashModel

public static freemarker.ext.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.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


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.