| |
|
| java.lang.Object com.nabhinc.ws.server.RequestContext
RequestContext | public class RequestContext (Code) | | Object attached to every Web service request that supplies request-related
information such as WebServiceRequest object, HttpServletRequest
object and HttpServletResponse object.
author: Padmanabh Dabke author: (c) 2005 Nabh Information Systems, Inc. All Rights Reserved. |
RequestContext | public RequestContext(HttpServletRequest req, HttpServletResponse resp)(Code) | | Constructs a RequestContext object associated
with supplied HTTP request and response. It also creates
a HTTPWebServiceRequest instance associated
with the HTTP request.
Parameters: req - HTTP request Parameters: resp - HTTP response |
getHttpServletRequest | public HttpServletRequest getHttpServletRequest()(Code) | | Returns HTTP servlet request associated with this context.
Developers should not call this method in their Web service implementations
unless they want to limit the service to run inside a servlet container. For
portability to non-HTTP servers, they should use equivalent methods
on WebServiceRequest object.
HTTP servlet request associated with this context. |
getHttpServletResponse | public HttpServletResponse getHttpServletResponse()(Code) | | Returns HTTP servlet response associated with this context.
Developers should not call this method in their Web service implementations
unless they want to limit the service to run inside a servlet container.
HTTP servlet response associated with this context. |
getWebServiceRequest | public WebServiceRequest getWebServiceRequest()(Code) | | Returns the WebServiceRequest object associated with this
context. Web service developers should get this object to obtain
protocol-independent access to request attribute, remote user information, etc.
WebServiceRequest associated with this context |
|
|
|