com.sun.ws.rest.api.core
Interface HttpContextAccess


public interface HttpContextAccess

A HttpContextAccess makes it possible for a web resource implementation class to access and manipulate HTTP request and response information directly. Typically a HttpContextAccess is injected into web resource implementation class using the Context annotation.


Method Summary
 java.lang.Object getCurrentResource()
          Get the current resource.
 HttpRequestContext getHttpRequestContext()
          Get the HTTP request information.
 HttpResponseContext getHttpResponseContext()
          Get the HTTP response information.
 

Method Detail

getHttpRequestContext

HttpRequestContext getHttpRequestContext()
Get the HTTP request information.

Returns:
the HTTP request information

getHttpResponseContext

HttpResponseContext getHttpResponseContext()
Get the HTTP response information.

Returns:
the HTTP response information

getCurrentResource

java.lang.Object getCurrentResource()
Get the current resource.

Returns:
the current resource.