public abstract class HttpServiceContext extends java.lang.Object implements ConnectionContext
ConnectionContext
for use in the HttpService
context.Modifier | Constructor and Description |
---|---|
protected |
HttpServiceContext(HttpHeadersFactory headersFactory,
HttpResponseFactory factory,
StreamingHttpResponseFactory streamingFactory,
BlockingStreamingHttpResponseFactory blockingFactory)
Create a new instance.
|
protected |
HttpServiceContext(HttpServiceContext other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract HttpExecutionContext |
executionContext()
Get the
ExecutionContext for this ConnectionContext . |
protected HttpHeadersFactory |
headersFactory()
Returns the
HttpHeadersFactory associated with this HttpServiceContext . |
protected HttpResponseFactory |
responseFactory()
Returns the
HttpResponseFactory associated with this HttpServiceContext . |
protected BlockingStreamingHttpResponseFactory |
streamingBlockingResponseFactory()
Returns the
BlockingStreamingHttpResponseFactory associated with this HttpServiceContext . |
protected StreamingHttpResponseFactory |
streamingResponseFactory()
Returns the
StreamingHttpResponseFactory associated with this HttpServiceContext . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localAddress, remoteAddress, sslSession
onClose
closeAsync, closeAsyncGracefully
protected HttpServiceContext(HttpHeadersFactory headersFactory, HttpResponseFactory factory, StreamingHttpResponseFactory streamingFactory, BlockingStreamingHttpResponseFactory blockingFactory)
headersFactory
- The HttpHeadersFactory
used for API conversionsfactory
- The HttpResponseFactory
used for API conversionsstreamingFactory
- The StreamingHttpResponseFactory
used for API conversionsblockingFactory
- The BlockingStreamingHttpResponseFactory
used for API conversionsprotected HttpServiceContext(HttpServiceContext other)
other
- HttpServiceContext
to copy from.public abstract 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 ConnectionContext
ExecutionContext
for this ConnectionContext
.protected final HttpHeadersFactory headersFactory()
HttpHeadersFactory
associated with this HttpServiceContext
.HttpHeadersFactory
associated with this HttpServiceContext
.protected final HttpResponseFactory responseFactory()
HttpResponseFactory
associated with this HttpServiceContext
.HttpResponseFactory
associated with this HttpServiceContext
.protected final StreamingHttpResponseFactory streamingResponseFactory()
StreamingHttpResponseFactory
associated with this HttpServiceContext
.StreamingHttpResponseFactory
associated with this HttpServiceContext
.protected final BlockingStreamingHttpResponseFactory streamingBlockingResponseFactory()
BlockingStreamingHttpResponseFactory
associated with this HttpServiceContext
.BlockingStreamingHttpResponseFactory
associated with this HttpServiceContext
.