|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.AbstractRequest
org.apache.tiles.request.DispatchRequestWrapper
org.apache.tiles.request.AbstractViewRequest
org.apache.tiles.request.freemarker.FreemarkerRequest
public class FreemarkerRequest
The FreeMarker-specific request context.
Field Summary |
---|
Fields inherited from class org.apache.tiles.request.AbstractRequest |
---|
FORCE_INCLUDE_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
FreemarkerRequest(DispatchRequest enclosedRequest,
freemarker.core.Environment env)
Constructor. |
Method Summary | |
---|---|
static FreemarkerRequest |
createServletFreemarkerRequest(ApplicationContext applicationContext,
freemarker.core.Environment env)
Creates a new Freemarker request. |
List<String> |
getAvailableScopes()
Returns all available scopes, that are the ones returned by #getNativeScopes() plus derivative scopes (e.g. |
Map<String,Object> |
getContext(String scope)
Returns a context map, given the scope name. |
freemarker.core.Environment |
getEnvironment()
Returns the environment object. |
Map<String,Object> |
getPageScope()
Returns the page scope. |
PrintWriter |
getPrintWriter()
Returns a print writer to be used to write directly in the response. |
Locale |
getRequestLocale()
Return the preferred Locale in which the client will accept content. |
Writer |
getWriter()
Returns a writer to be used to write directly in the response. |
Methods inherited from class org.apache.tiles.request.AbstractViewRequest |
---|
dispatch, doInclude, include |
Methods inherited from class org.apache.tiles.request.DispatchRequestWrapper |
---|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType |
Methods inherited from class org.apache.tiles.request.AbstractRequest |
---|
isForceInclude, setForceInclude |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FreemarkerRequest(DispatchRequest enclosedRequest, freemarker.core.Environment env)
enclosedRequest
- The request that exposes non-FreeMarker specific propertiesenv
- The FreeMarker environment.Method Detail |
---|
public static FreemarkerRequest createServletFreemarkerRequest(ApplicationContext applicationContext, freemarker.core.Environment env)
applicationContext
- The application context.env
- The Freemarker's environment object.
public freemarker.core.Environment getEnvironment()
public Locale getRequestLocale()
getRequestLocale
in interface Request
getRequestLocale
in class DispatchRequestWrapper
org.apache.tiles.locale.LocaleResolver
to implement strategies to
resolve locales.public Map<String,Object> getPageScope()
public List<String> getAvailableScopes()
DispatchRequestWrapper
#getNativeScopes()
plus derivative scopes (e.g. flash scope).
getAvailableScopes
in interface Request
getAvailableScopes
in class DispatchRequestWrapper
public PrintWriter getPrintWriter()
getPrintWriter
in interface Request
getPrintWriter
in class DispatchRequestWrapper
public Writer getWriter()
getWriter
in interface Request
getWriter
in class DispatchRequestWrapper
public Map<String,Object> getContext(String scope)
DispatchRequestWrapper
getContext
in interface Request
getContext
in class DispatchRequestWrapper
scope
- The name of the scope.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |