@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)
RequestGlobals
storeServletRequestResponse
in interface RequestGlobals
public HttpServletRequest getHTTPServletRequest()
RequestGlobals
getHTTPServletRequest
in interface RequestGlobals
public HttpServletResponse getHTTPServletResponse()
getHTTPServletResponse
in interface RequestGlobals
public void storeRequestResponse(Request request, Response response)
storeRequestResponse
in interface RequestGlobals
public Request getRequest()
RequestGlobals
getRequest
in interface RequestGlobals
public Response getResponse()
RequestGlobals
getResponse
in interface RequestGlobals
public String getActivePageName()
RequestGlobals
getActivePageName
in interface RequestGlobals
public void storeActivePageName(String pageName)
RequestGlobals
storeActivePageName
in interface RequestGlobals
pageName
- name of page (probably extracted from the URL)5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.