Package io.servicetalk.http.api
Class HttpServiceContext
java.lang.Object
io.servicetalk.http.api.HttpServiceContext
- All Implemented Interfaces:
AsyncCloseable
,ListenableAsyncCloseable
,HttpConnectionContext
,ConnectionContext
,ConnectionInfo
,ServerListenContext
- Direct Known Subclasses:
DelegatingHttpServiceContext
public abstract class HttpServiceContext
extends Object
implements HttpConnectionContext, ServerListenContext
A
HttpConnectionContext
for use in the HttpService
context.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ConnectionInfo
ConnectionInfo.Protocol
-
Constructor Summary
ModifierConstructorDescriptionprotected
HttpServiceContext
(HttpHeadersFactory headersFactory, HttpResponseFactory factory, StreamingHttpResponseFactory streamingFactory, BlockingStreamingHttpResponseFactory blockingFactory) Create a new instance.protected
Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected BlockingStreamingHttpResponseFactory
Returns theBlockingStreamingHttpResponseFactory
associated with thisHttpServiceContext
.protected HttpHeadersFactory
Returns theHttpHeadersFactory
associated with thisHttpServiceContext
.protected HttpResponseFactory
Returns theHttpResponseFactory
associated with thisHttpServiceContext
.protected StreamingHttpResponseFactory
Returns theStreamingHttpResponseFactory
associated with thisHttpServiceContext
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
Methods inherited from interface io.servicetalk.transport.api.ConnectionContext
parent
Methods inherited from interface io.servicetalk.transport.api.ConnectionInfo
localAddress, remoteAddress, socketOption, sslConfig, sslSession
Methods inherited from interface io.servicetalk.http.api.HttpConnectionContext
executionContext, protocol
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
Methods inherited from interface io.servicetalk.transport.api.ServerListenContext
acceptConnections
-
Constructor Details
-
HttpServiceContext
protected HttpServiceContext(HttpHeadersFactory headersFactory, HttpResponseFactory factory, StreamingHttpResponseFactory streamingFactory, BlockingStreamingHttpResponseFactory blockingFactory) Create a new instance.- Parameters:
headersFactory
- TheHttpHeadersFactory
used for API conversionsfactory
- TheHttpResponseFactory
used for API conversionsstreamingFactory
- TheStreamingHttpResponseFactory
used for API conversionsblockingFactory
- TheBlockingStreamingHttpResponseFactory
used for API conversions
-
HttpServiceContext
Copy constructor.- Parameters:
other
-HttpServiceContext
to copy from.
-
-
Method Details
-
headersFactory
Returns theHttpHeadersFactory
associated with thisHttpServiceContext
.- Returns:
HttpHeadersFactory
associated with thisHttpServiceContext
.
-
responseFactory
Returns theHttpResponseFactory
associated with thisHttpServiceContext
.- Returns:
HttpResponseFactory
associated with thisHttpServiceContext
.
-
streamingResponseFactory
Returns theStreamingHttpResponseFactory
associated with thisHttpServiceContext
.- Returns:
StreamingHttpResponseFactory
associated with thisHttpServiceContext
.
-
blockingStreamingResponseFactory
Returns theBlockingStreamingHttpResponseFactory
associated with thisHttpServiceContext
.- Returns:
BlockingStreamingHttpResponseFactory
associated with thisHttpServiceContext
.
-