public class FreemarkerRequest extends AbstractViewRequest
FORCE_INCLUDE_ATTRIBUTE_NAMEAPPLICATION_SCOPE, REQUEST_SCOPE| Constructor and Description | 
|---|
| FreemarkerRequest(DispatchRequest enclosedRequest,
                 freemarker.core.Environment env)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static FreemarkerRequest | createServletFreemarkerRequest(ApplicationContext applicationContext,
                              freemarker.core.Environment env)Creates a new Freemarker request. | 
| List<String> | getAvailableScopes()Returns all available scopes. | 
| 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. | 
dispatch, doInclude, includegetApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentTypeisForceInclude, setForceIncludepublic FreemarkerRequest(DispatchRequest enclosedRequest, freemarker.core.Environment env)
enclosedRequest - The request that exposes non-FreeMarker specific propertiesenv - The FreeMarker environment.public static FreemarkerRequest createServletFreemarkerRequest(ApplicationContext applicationContext, freemarker.core.Environment env)
applicationContext - The application context.env - The Freemarker environment object.public freemarker.core.Environment getEnvironment()
public Locale getRequestLocale()
getRequestLocale in interface RequestgetRequestLocale in class DispatchRequestWrapperLocaleResolver to implement strategies to
 resolve locales.public Map<String,Object> getPageScope()
public List<String> getAvailableScopes()
DispatchRequestWrappergetAvailableScopes in interface RequestgetAvailableScopes in class DispatchRequestWrapperpublic PrintWriter getPrintWriter()
getPrintWriter in interface RequestgetPrintWriter in class DispatchRequestWrapperpublic Writer getWriter()
getWriter in interface RequestgetWriter in class DispatchRequestWrapperpublic Map<String,Object> getContext(String scope)
DispatchRequestWrappergetContext in interface RequestgetContext in class DispatchRequestWrapperscope - The name of the scope.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.