Class RequestGlobalsImpl
-
- org.apache.tapestry5.http.internal.services.RequestGlobalsImpl
-
- All Implemented Interfaces:
RequestGlobals
@Scope("perthread") public class RequestGlobalsImpl extends 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 getActivePageName()
Returns the active page name previously stored.getHTTPServletRequest()
The Servlet API Request.getHTTPServletResponse()
Request
getRequest()
The current request.Response
getResponse()
The current response.void
pageName)
Stores the name of the active page for this request.void
storeRequestResponse(Request request, Response response)
void
request, response)
Stores the servlet API request and response objects, for access via the properties.
-
-
-
Constructor Detail
-
RequestGlobalsImpl
public RequestGlobalsImpl()
-
-
Method Detail
-
storeServletRequestResponse
public void request, 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
public getHTTPServletRequest()
Description copied from interface:RequestGlobals
The Servlet API Request. This is exposed as service HTTPServletRequest.- Specified by:
getHTTPServletRequest
in interfaceRequestGlobals
-
getHTTPServletResponse
public getHTTPServletResponse()
- Specified by:
getHTTPServletResponse
in interfaceRequestGlobals
-
storeRequestResponse
public void storeRequestResponse(Request request, Response response)
- Specified by:
storeRequestResponse
in interfaceRequestGlobals
-
getRequest
public Request getRequest()
Description copied from interface:RequestGlobals
The current request. This is exposed as service Request.- Specified by:
getRequest
in interfaceRequestGlobals
-
getResponse
public Response getResponse()
Description copied from interface:RequestGlobals
The current response. This is exposed as service Response.- Specified by:
getResponse
in interfaceRequestGlobals
-
getActivePageName
public getActivePageName()
Description copied from interface:RequestGlobals
Returns the active page name previously stored.- Specified by:
getActivePageName
in interfaceRequestGlobals
- Returns:
- canonicalized page name
-
storeActivePageName
public void pageName)
Description copied from interface:RequestGlobals
Stores the name of the active page for this request.- Specified by:
storeActivePageName
in interfaceRequestGlobals
- Parameters:
pageName
- name of page (probably extracted from the URL)
-
-