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 |
|---|---|
protected BlockingStreamingHttpResponseFactory |
blockingStreamingResponseFactory()
Returns the
BlockingStreamingHttpResponseFactory associated with this HttpServiceContext. |
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 StreamingHttpResponseFactory |
streamingResponseFactory()
Returns the
StreamingHttpResponseFactory associated with this HttpServiceContext. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlocalAddress, remoteAddress, sslSessiononClosecloseAsync, closeAsyncGracefullyprotected 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()
ConnectionContextExecutionContext 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 ConnectionContextExecutionContext for this ConnectionContext.protected HttpHeadersFactory headersFactory()
HttpHeadersFactory associated with this HttpServiceContext.HttpHeadersFactory associated with this HttpServiceContext.protected HttpResponseFactory responseFactory()
HttpResponseFactory associated with this HttpServiceContext.HttpResponseFactory associated with this HttpServiceContext.protected StreamingHttpResponseFactory streamingResponseFactory()
StreamingHttpResponseFactory associated with this HttpServiceContext.StreamingHttpResponseFactory associated with this HttpServiceContext.protected BlockingStreamingHttpResponseFactory blockingStreamingResponseFactory()
BlockingStreamingHttpResponseFactory associated with this HttpServiceContext.BlockingStreamingHttpResponseFactory associated with this HttpServiceContext.