Class RequestGlobalsImpl
java.lang.Object
org.apache.tapestry5.http.internal.services.RequestGlobalsImpl
- All Implemented Interfaces:
RequestGlobals
Dumb data holder for per-request data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the active page name previously stored.javax.servlet.http.HttpServletRequest
The Servlet API Request.javax.servlet.http.HttpServletResponse
The current request.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
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Stores the servlet API request and response objects, for access via the properties.
-
Constructor Details
-
RequestGlobalsImpl
public RequestGlobalsImpl()
-
-
Method Details
-
storeServletRequestResponse
public void storeServletRequestResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from interface:RequestGlobals
Stores the servlet API request and response objects, for access via the properties.- Specified by:
storeServletRequestResponse
in interfaceRequestGlobals
-
getHTTPServletRequest
Description copied from interface:RequestGlobals
The Servlet API Request. This is exposed as service HTTPServletRequest.- Specified by:
getHTTPServletRequest
in interfaceRequestGlobals
-
getHTTPServletResponse
- Specified by:
getHTTPServletResponse
in interfaceRequestGlobals
-
storeRequestResponse
- Specified by:
storeRequestResponse
in interfaceRequestGlobals
-
getRequest
Description copied from interface:RequestGlobals
The current request. This is exposed as service Request.- Specified by:
getRequest
in interfaceRequestGlobals
-
getResponse
Description copied from interface:RequestGlobals
The current response. This is exposed as service Response.- Specified by:
getResponse
in interfaceRequestGlobals
-
getActivePageName
Description copied from interface:RequestGlobals
Returns the active page name previously stored.- Specified by:
getActivePageName
in interfaceRequestGlobals
- Returns:
- canonicalized page name
-
storeActivePageName
Description copied from interface:RequestGlobals
Stores the canonicalized name of the active page for this request.- Specified by:
storeActivePageName
in interfaceRequestGlobals
- Parameters:
pageName
- name of page (probably extracted from the URL)
-