org.glassfish.jersey.server.internal.inject
Interface HttpContext


public interface HttpContext

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

Author:
Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)

Field Summary
static java.lang.String FORM_PROPERTY
          Used internally for storing Form instance in HttpContext properties.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
          Get the mutable properties.
 Request getRequest()
          Get the HTTP request information.
 Response getResponse()
          Get the HTTP response information.
 ExtendedUriInfo getUriInfo()
          Get the extended URI information.
 

Field Detail

FORM_PROPERTY

static final java.lang.String FORM_PROPERTY
Used internally for storing Form instance in HttpContext properties.

See Also:
Constant Field Values
Method Detail

getUriInfo

ExtendedUriInfo getUriInfo()
Get the extended URI information.

Returns:
the extended URI information.

getRequest

Request getRequest()
Get the HTTP request information.

Returns:
the HTTP request information

getResponse

Response getResponse()
Get the HTTP response information.

Returns:
the HTTP response information

getProperties

java.util.Map<java.lang.String,java.lang.Object> getProperties()
Get the mutable properties.

Care should be taken not to clear the properties or remove properties that are unknown otherwise unspecified behavior may result.

Returns:
the properties.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.