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.HttpServletRequestThe Servlet API Request.javax.servlet.http.HttpServletResponseThe current request.The current response.voidstoreActivePageName(String pageName) Stores the canonicalized name of the active page for this request.voidstoreRequestResponse(Request request, Response response) voidstoreServletRequestResponse(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:RequestGlobalsStores the servlet API request and response objects, for access via the properties.- Specified by:
storeServletRequestResponsein interfaceRequestGlobals
-
getHTTPServletRequest
Description copied from interface:RequestGlobalsThe Servlet API Request. This is exposed as service HTTPServletRequest.- Specified by:
getHTTPServletRequestin interfaceRequestGlobals
-
getHTTPServletResponse
- Specified by:
getHTTPServletResponsein interfaceRequestGlobals
-
storeRequestResponse
- Specified by:
storeRequestResponsein interfaceRequestGlobals
-
getRequest
Description copied from interface:RequestGlobalsThe current request. This is exposed as service Request.- Specified by:
getRequestin interfaceRequestGlobals
-
getResponse
Description copied from interface:RequestGlobalsThe current response. This is exposed as service Response.- Specified by:
getResponsein interfaceRequestGlobals
-
getActivePageName
Description copied from interface:RequestGlobalsReturns the active page name previously stored.- Specified by:
getActivePageNamein interfaceRequestGlobals- Returns:
- canonicalized page name
-
storeActivePageName
Description copied from interface:RequestGlobalsStores the canonicalized name of the active page for this request.- Specified by:
storeActivePageNamein interfaceRequestGlobals- Parameters:
pageName- name of page (probably extracted from the URL)
-