Package org.glassfish.grizzly.http
Class HttpContext
java.lang.Object
org.glassfish.grizzly.http.HttpContext
- All Implemented Interfaces:
AttributeStorage
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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpContext(AttributeStorage attributeStorage, OutputSink outputSink, Closeable closeable, HttpRequestPacket request) -
Method Summary
Modifier and TypeMethodDescriptionattach(FilterChainContext ctx) voidclose()static HttpContextget(FilterChainContext ctx) final AttributeHolderGet associatedAttributeHolder.static HttpContextnewInstance(AttributeStorage attributeStorage, OutputSink outputSink, Closeable closeable, HttpRequestPacket request)
-
Constructor Details
-
HttpContext
protected HttpContext(AttributeStorage attributeStorage, OutputSink outputSink, Closeable closeable, HttpRequestPacket request)
-
-
Method Details
-
getRequest
-
attach
-
getAttributes
Description copied from interface:AttributeStorageGet associatedAttributeHolder. Implementation may return null ifAttributeHolderwasn't initialized yet.- Specified by:
getAttributesin interfaceAttributeStorage- Returns:
- associated
AttributeHolder. Implementation may return null ifAttributeHolderwasn't initialized yet.
-
getContextStorage
-
getOutputSink
-
getCloseable
-
close
public void close() -
newInstance
public static HttpContext newInstance(AttributeStorage attributeStorage, OutputSink outputSink, Closeable closeable, HttpRequestPacket request) -
get
-