Top Description Fields Constructors Methods
org.glassfish.grizzly.http

public Class HttpContext

extends Object
implements AttributeStorage
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.attributes.AttributeStorage
Imports
org.glassfish.grizzly.Closeable, .OutputSink, org.glassfish.grizzly.attributes.Attribute, .AttributeBuilder, .AttributeHolder, .AttributeStorage, org.glassfish.grizzly.filterchain.FilterChainContext

Represents a single logical HTTP transaction. The target storage provided to the constructor provides a way to look up this transaction at any point in the FilterChain execution.
Since
2.3

Field Summary

Modifier and TypeField and Description
private final Closeable
private final AttributeStorage
private static final Attribute<HttpContext>
private final OutputSink
private final HttpRequestPacket

Constructor Summary

AccessConstructor and Description
protected
HttpContext(final AttributeStorage attributeStorage, final OutputSink outputSink, final Closeable closeable, final HttpRequestPacket request)

Method Summary

Modifier and TypeMethod and Description
public HttpContext
public void
public static HttpContext
public final AttributeHolder
public Closeable
public AttributeStorage
public OutputSink
public HttpRequestPacket
public static HttpContext
newInstance(final AttributeStorage attributeStorage, final OutputSink outputSink, final Closeable closeable, final HttpRequestPacket request)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

closeableback to summary
private final Closeable closeable
contextStorageback to summary
private final AttributeStorage contextStorage
HTTP_CONTEXT_ATTRback to summary
private static final Attribute<HttpContext> HTTP_CONTEXT_ATTR
outputSinkback to summary
private final OutputSink outputSink
requestback to summary
private final HttpRequestPacket request

Constructor Detail

HttpContextback to summary
protected HttpContext(final AttributeStorage attributeStorage, final OutputSink outputSink, final Closeable closeable, final HttpRequestPacket request)

Method Detail

attachback to summary
public HttpContext attach(final FilterChainContext ctx)
closeback to summary
public void close()
getback to summary
public static HttpContext get(final FilterChainContext ctx)
getAttributesback to summary
public final AttributeHolder getAttributes()

Implements org.glassfish.grizzly.attributes.AttributeStorage.getAttributes.

Doc from org.glassfish.grizzly.attributes.AttributeStorage.getAttributes.

Get associated AttributeHolder. Implementation may return null if AttributeHolder wasn't initialized yet.

Annotations
@Override
getCloseableback to summary
public Closeable getCloseable()
getContextStorageback to summary
public AttributeStorage getContextStorage()
getOutputSinkback to summary
public OutputSink getOutputSink()
getRequestback to summary
public HttpRequestPacket getRequest()
newInstanceback to summary
public static HttpContext newInstance(final AttributeStorage attributeStorage, final OutputSink outputSink, final Closeable closeable, final HttpRequestPacket request)