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 String FORM_DECODED_PROPERTY
          Used internally for storing Form instance with url-decoded values in HttpContext properties.
static String FORM_PROPERTY
          Used internally for storing Form instance with original (not url-decoded) values in HttpContext properties.
 
Method Summary
 ContainerRequest getRequestContext()
          Get the HTTP request information.
 ExtendedUriInfo getUriInfo()
          Get the extended URI information.
 

Field Detail

FORM_PROPERTY

static final String FORM_PROPERTY
Used internally for storing Form instance with original (not url-decoded) values in HttpContext properties.

See Also:
Constant Field Values

FORM_DECODED_PROPERTY

static final String FORM_DECODED_PROPERTY
Used internally for storing Form instance with url-decoded values in HttpContext properties.

See Also:
Constant Field Values
Method Detail

getUriInfo

ExtendedUriInfo getUriInfo()
Get the extended URI information.

Returns:
the extended URI information.

getRequestContext

ContainerRequest getRequestContext()
Get the HTTP request information.

Returns:
the HTTP request information


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.