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
ConnectionInfo.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 ConnectionInfo . |
HttpConnectionContext.HttpProtocol |
protocol()
Get the
ConnectionInfo.Protocol for this ConnectionInfo . |
closeAsync, closeAsyncGracefully, localAddress, onClose, remoteAddress, socketOption, sslSession, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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()
ConnectionInfo
ExecutionContext
for this ConnectionInfo
.
The ExecutionContext.ioExecutor()
will represent the thread responsible for IO for this
ConnectionInfo
. 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 ConnectionInfo
executionContext
in class DelegatingConnectionContext
ExecutionContext
for this ConnectionInfo
.public HttpConnectionContext.HttpProtocol protocol()
ConnectionInfo
ConnectionInfo.Protocol
for this ConnectionInfo
.protocol
in interface HttpConnectionContext
protocol
in interface ConnectionInfo
protocol
in class DelegatingConnectionContext
ConnectionInfo.Protocol
for this ConnectionInfo
.