Package io.servicetalk.http.api
Class HttpServiceContext
- java.lang.Object
-
- io.servicetalk.http.api.HttpServiceContext
-
- All Implemented Interfaces:
AsyncCloseable,ListenableAsyncCloseable,HttpConnectionContext,ConnectionContext,ConnectionInfo
- Direct Known Subclasses:
DelegatingHttpServiceContext,TestHttpServiceContext
public abstract class HttpServiceContext extends java.lang.Object implements HttpConnectionContext
AHttpConnectionContextfor use in theHttpServicecontext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ConnectionInfo
ConnectionInfo.Protocol
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpServiceContext(HttpHeadersFactory headersFactory, HttpResponseFactory factory, StreamingHttpResponseFactory streamingFactory, BlockingStreamingHttpResponseFactory blockingFactory)Create a new instance.protectedHttpServiceContext(HttpServiceContext other)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BlockingStreamingHttpResponseFactoryblockingStreamingResponseFactory()Returns theBlockingStreamingHttpResponseFactoryassociated with thisHttpServiceContext.protected HttpHeadersFactoryheadersFactory()Returns theHttpHeadersFactoryassociated with thisHttpServiceContext.protected HttpResponseFactoryresponseFactory()Returns theHttpResponseFactoryassociated with thisHttpServiceContext.protected StreamingHttpResponseFactorystreamingResponseFactory()Returns theStreamingHttpResponseFactoryassociated 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.ConnectionInfo
localAddress, remoteAddress, socketOption, sslSession
-
Methods inherited from interface io.servicetalk.http.api.HttpConnectionContext
executionContext, protocol
-
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose
-
-
-
-
Constructor Detail
-
HttpServiceContext
protected HttpServiceContext(HttpHeadersFactory headersFactory, HttpResponseFactory factory, StreamingHttpResponseFactory streamingFactory, BlockingStreamingHttpResponseFactory blockingFactory)
Create a new instance.- Parameters:
headersFactory- TheHttpHeadersFactoryused for API conversionsfactory- TheHttpResponseFactoryused for API conversionsstreamingFactory- TheStreamingHttpResponseFactoryused for API conversionsblockingFactory- TheBlockingStreamingHttpResponseFactoryused for API conversions
-
HttpServiceContext
protected HttpServiceContext(HttpServiceContext other)
Copy constructor.- Parameters:
other-HttpServiceContextto copy from.
-
-
Method Detail
-
headersFactory
protected HttpHeadersFactory headersFactory()
Returns theHttpHeadersFactoryassociated with thisHttpServiceContext.- Returns:
HttpHeadersFactoryassociated with thisHttpServiceContext.
-
responseFactory
protected HttpResponseFactory responseFactory()
Returns theHttpResponseFactoryassociated with thisHttpServiceContext.- Returns:
HttpResponseFactoryassociated with thisHttpServiceContext.
-
streamingResponseFactory
protected StreamingHttpResponseFactory streamingResponseFactory()
Returns theStreamingHttpResponseFactoryassociated with thisHttpServiceContext.- Returns:
StreamingHttpResponseFactoryassociated with thisHttpServiceContext.
-
blockingStreamingResponseFactory
protected BlockingStreamingHttpResponseFactory blockingStreamingResponseFactory()
Returns theBlockingStreamingHttpResponseFactoryassociated with thisHttpServiceContext.- Returns:
BlockingStreamingHttpResponseFactoryassociated with thisHttpServiceContext.
-
-