public class DelegatingHttpConnectionContext extends DelegatingConnectionContext implements HttpConnectionContext
HttpConnectionContext
implementation that delegates all calls to a provided HttpConnectionContext
.
Any of the methods can be overridden by implementations to change the behavior.HttpConnectionContext.HttpProtocol
ConnectionContext.Protocol
Constructor and Description |
---|
DelegatingHttpConnectionContext(HttpConnectionContext delegate)
New instance.
|
Modifier and Type | Method and Description |
---|---|
protected HttpConnectionContext |
delegate()
Get the
HttpConnectionContext that this class delegates to. |
HttpExecutionContext |
executionContext()
Get the
ExecutionContext for this ConnectionContext . |
HttpConnectionContext.HttpProtocol |
protocol()
Get the
ConnectionContext.Protocol for this ConnectionContext . |
closeAsync, closeAsyncGracefully, localAddress, onClose, remoteAddress, socketOption, sslSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localAddress, remoteAddress, socketOption, sslSession
onClose
closeAsync, closeAsyncGracefully
public DelegatingHttpConnectionContext(HttpConnectionContext delegate)
delegate
- HttpConnectionContext
to delegate all calls.protected final HttpConnectionContext delegate()
HttpConnectionContext
that this class delegates to.delegate
in class DelegatingConnectionContext
HttpConnectionContext
that this class delegates to.public HttpExecutionContext executionContext()
ConnectionContext
ExecutionContext
for this ConnectionContext
.
The ExecutionContext.ioExecutor()
will represent the thread responsible for IO for this
ConnectionContext
. Note that this maybe different that what was used to create this object because
at this time a specific IoExecutor
has been selected.
executionContext
in interface HttpConnectionContext
executionContext
in interface ConnectionContext
executionContext
in class DelegatingConnectionContext
ExecutionContext
for this ConnectionContext
.public HttpConnectionContext.HttpProtocol protocol()
ConnectionContext
ConnectionContext.Protocol
for this ConnectionContext
.protocol
in interface HttpConnectionContext
protocol
in interface ConnectionContext
protocol
in class DelegatingConnectionContext
ConnectionContext.Protocol
for this ConnectionContext
.