@Scope(value="perthread") public class RequestGlobalsImpl extends Object implements RequestGlobals
| Constructor and Description |
|---|
RequestGlobalsImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActivePageName()
Returns the active page name previously stored.
|
HttpServletRequest |
getHTTPServletRequest()
The Servlet API Request.
|
HttpServletResponse |
getHTTPServletResponse() |
Request |
getRequest()
The current request.
|
Response |
getResponse()
The current response.
|
void |
storeActivePageName(String pageName)
Stores the canonicalized
name of the active page for this request.
|
void |
storeRequestResponse(Request request,
Response response) |
void |
storeServletRequestResponse(HttpServletRequest request,
HttpServletResponse response)
Stores the servlet API request and response objects, for access via the properties.
|
public RequestGlobalsImpl()
public void storeServletRequestResponse(HttpServletRequest request, HttpServletResponse response)
RequestGlobalsstoreServletRequestResponse in interface RequestGlobalspublic HttpServletRequest getHTTPServletRequest()
RequestGlobalsgetHTTPServletRequest in interface RequestGlobalspublic HttpServletResponse getHTTPServletResponse()
getHTTPServletResponse in interface RequestGlobalspublic void storeRequestResponse(Request request, Response response)
storeRequestResponse in interface RequestGlobalspublic Request getRequest()
RequestGlobalsgetRequest in interface RequestGlobalspublic Response getResponse()
RequestGlobalsgetResponse in interface RequestGlobalspublic String getActivePageName()
RequestGlobalsgetActivePageName in interface RequestGlobalspublic void storeActivePageName(String pageName)
RequestGlobalsstoreActivePageName in interface RequestGlobalspageName - name of page (probably extracted from the URL)5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.