Class FreemarkerRequestUtil
java.lang.Object
org.apache.tiles.request.freemarker.FreemarkerRequestUtil
Utilities to work with Freemarker requests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
Returns the application context. It must be first saved creating anApplicationContext
and usingApplicationAccess.register(ApplicationContext)
.- Parameters:
env
- The Freemarker environment.- Returns:
- The
-