public abstract class HttpServiceContext extends java.lang.Object implements HttpConnectionContext
HttpConnectionContext
for use in the HttpService
context.HttpConnectionContext.HttpProtocol
ConnectionContext.Protocol
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 . |
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, wait
executionContext, protocol
localAddress, remoteAddress, socketOption, 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.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
.