public class JspRequest extends AbstractViewRequest
FORCE_INCLUDE_ATTRIBUTE_NAME
APPLICATION_SCOPE, REQUEST_SCOPE
Constructor and Description |
---|
JspRequest(DispatchRequest enclosedRequest,
PageContext pageContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static JspRequest |
createServletJspRequest(ApplicationContext applicationContext,
PageContext pageContext)
Creates a JSP request.
|
protected void |
doInclude(String path)
Includes the result.
|
Map<String,Object> |
getApplicationScope()
Returns the application scope.
|
List<String> |
getAvailableScopes()
Returns all available scopes.
|
Map<String,Object> |
getContext(String scope)
Returns a context map, given the scope name.
|
PageContext |
getPageContext()
Returns the page context that originated the request.
|
Map<String,Object> |
getPageScope()
Returns the page scope.
|
PrintWriter |
getPrintWriter()
Returns a print writer to be used to write directly in the response.
|
Map<String,Object> |
getRequestScope()
Returns the request scope.
|
Map<String,Object> |
getSessionScope()
Returns the session scope.
|
Writer |
getWriter()
Returns a writer to be used to write directly in the response.
|
dispatch, include
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestLocale, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType
isForceInclude, setForceInclude
public JspRequest(DispatchRequest enclosedRequest, PageContext pageContext)
enclosedRequest
- The request that is wrapped here.pageContext
- The page context to use.public static JspRequest createServletJspRequest(ApplicationContext applicationContext, PageContext pageContext)
applicationContext
- The application context.pageContext
- The page context.public List<String> getAvailableScopes()
DispatchRequestWrapper
getAvailableScopes
in interface Request
getAvailableScopes
in class DispatchRequestWrapper
protected void doInclude(String path) throws IOException
doInclude
in class AbstractViewRequest
path
- The path whose result will be included.IOException
- If something goes wrong.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> getPageScope()
public Map<String,Object> getRequestScope()
public Map<String,Object> getSessionScope()
public Map<String,Object> getApplicationScope()
public PageContext getPageContext()
public Map<String,Object> getContext(String scope)
DispatchRequestWrapper
getContext
in interface Request
getContext
in class DispatchRequestWrapper
scope
- The name of the scope.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.