public class HttpContext extends Object implements AttributeStorage
| Modifier | Constructor and Description |
|---|---|
protected |
HttpContext(AttributeStorage attributeStorage,
OutputSink outputSink,
Closeable closeable,
HttpRequestPacket request) |
| Modifier and Type | Method and Description |
|---|---|
HttpContext |
attach(FilterChainContext ctx) |
void |
close() |
static HttpContext |
get(FilterChainContext ctx) |
AttributeHolder |
getAttributes()
Get associated
AttributeHolder. |
Closeable |
getCloseable() |
AttributeStorage |
getContextStorage() |
OutputSink |
getOutputSink() |
HttpRequestPacket |
getRequest() |
static HttpContext |
newInstance(AttributeStorage attributeStorage,
OutputSink outputSink,
Closeable closeable,
HttpRequestPacket request) |
protected HttpContext(AttributeStorage attributeStorage, OutputSink outputSink, Closeable closeable, HttpRequestPacket request)
public HttpRequestPacket getRequest()
public HttpContext attach(FilterChainContext ctx)
public final AttributeHolder getAttributes()
AttributeStorageAttributeHolder.
Implementation may return null if AttributeHolder wasn't
initialized yet.getAttributes in interface AttributeStorageAttributeHolder.
Implementation may return null if AttributeHolder wasn't
initialized yet.public AttributeStorage getContextStorage()
public OutputSink getOutputSink()
public Closeable getCloseable()
public void close()
public static HttpContext newInstance(AttributeStorage attributeStorage, OutputSink outputSink, Closeable closeable, HttpRequestPacket request)
public static HttpContext get(FilterChainContext ctx)
Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.