Class RequestGlobalsImpl
- java.lang.Object
-
- org.apache.tapestry5.http.internal.services.RequestGlobalsImpl
-
- All Implemented Interfaces:
RequestGlobals
@Scope("perthread") public class RequestGlobalsImpl extends java.lang.Object implements RequestGlobals
Dumb data holder for per-request data.
-
-
Constructor Summary
Constructors Constructor Description RequestGlobalsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActivePageName()Returns the active page name previously stored.HttpServletRequestgetHTTPServletRequest()The Servlet API Request.HttpServletResponsegetHTTPServletResponse()RequestgetRequest()The current request.ResponsegetResponse()The current response.voidstoreActivePageName(java.lang.String pageName)Stores the canonicalized name of the active page for this request.voidstoreRequestResponse(Request request, Response response)voidstoreServletRequestResponse(HttpServletRequest request, HttpServletResponse response)Stores the servlet API request and response objects, for access via the properties.
-
-
-
Constructor Detail
-
RequestGlobalsImpl
public RequestGlobalsImpl()
-
-
Method Detail
-
storeServletRequestResponse
public void storeServletRequestResponse(HttpServletRequest request, HttpServletResponse response)
Description copied from interface:RequestGlobalsStores the servlet API request and response objects, for access via the properties.- Specified by:
storeServletRequestResponsein interfaceRequestGlobals
-
getHTTPServletRequest
public HttpServletRequest getHTTPServletRequest()
Description copied from interface:RequestGlobalsThe Servlet API Request. This is exposed as service HTTPServletRequest.- Specified by:
getHTTPServletRequestin interfaceRequestGlobals
-
getHTTPServletResponse
public HttpServletResponse getHTTPServletResponse()
- Specified by:
getHTTPServletResponsein interfaceRequestGlobals
-
storeRequestResponse
public void storeRequestResponse(Request request, Response response)
- Specified by:
storeRequestResponsein interfaceRequestGlobals
-
getRequest
public Request getRequest()
Description copied from interface:RequestGlobalsThe current request. This is exposed as service Request.- Specified by:
getRequestin interfaceRequestGlobals
-
getResponse
public Response getResponse()
Description copied from interface:RequestGlobalsThe current response. This is exposed as service Response.- Specified by:
getResponsein interfaceRequestGlobals
-
getActivePageName
public java.lang.String getActivePageName()
Description copied from interface:RequestGlobalsReturns the active page name previously stored.- Specified by:
getActivePageNamein interfaceRequestGlobals- Returns:
- canonicalized page name
-
storeActivePageName
public void storeActivePageName(java.lang.String pageName)
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)
-
-