org.apache.tapestry.services
Interface RequestGlobals

All Known Implementing Classes:
RequestGlobalsImpl

public interface RequestGlobals

Service used to store the current request objects, both the Servlet API versions, and the Tapestry generic versions. The service has a per-thread scope.


Method Summary
 HttpServletRequest getHTTPServletRequest()
          The Servlet API Request.
 HttpServletResponse getHTTPServletResponse()
           
 Request getRequest()
          The current request.
 Response getResponse()
          The current response.
 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.
 

Method Detail

storeServletRequestResponse

void storeServletRequestResponse(HttpServletRequest request,
                                 HttpServletResponse response)
Stores the servlet API request and response objects, for access via the properties.


getHTTPServletRequest

HttpServletRequest getHTTPServletRequest()
The Servlet API Request. This is exposed as service HTTPServletRequest.


getHTTPServletResponse

HttpServletResponse getHTTPServletResponse()

storeRequestResponse

void storeRequestResponse(Request request,
                          Response response)

getRequest

Request getRequest()
The current request. This is exposed as service Request.


getResponse

Response getResponse()
The current response. This is exposed as service Response.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.