Package io.servicetalk.http.api
Class ContentCodingHttpRequesterFilter
java.lang.Object
io.servicetalk.http.api.ContentCodingHttpRequesterFilter
- All Implemented Interfaces:
HttpExecutionStrategyInfluencer
,StreamingHttpClientFilterFactory
,StreamingHttpConnectionFilterFactory
,ExecutionStrategyInfluencer<HttpExecutionStrategy>
@Deprecated
public final class ContentCodingHttpRequesterFilter
extends Object
implements StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory
Deprecated.
A
StreamingHttpClientFilter
that adds encoding / decoding functionality for requests and responses
respectively, as these are specified by the spec
Content-Encoding.
Append this filter before others that are expected to to see compressed content for this request/response, and after other filters that expect to manipulate the original payload.
-
Constructor Summary
ConstructorDescriptionContentCodingHttpRequesterFilter
(List<ContentCodec> supportedCodings) Deprecated.Enable support of the provided encodings for requests and responses. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(FilterableStreamingHttpClient client) Deprecated.Creates aStreamingHttpClientFilter
using the providedStreamingHttpClientFilter
.create
(FilterableStreamingHttpConnection connection) Deprecated.Create aStreamingHttpConnectionFilter
using the providedFilterableStreamingHttpConnection
.Deprecated.Return anExecutionStrategy
that describes the offloads required by the influencer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.servicetalk.http.api.HttpExecutionStrategyInfluencer
influenceStrategy
-
Constructor Details
-
ContentCodingHttpRequesterFilter
Deprecated.Enable support of the provided encodings for requests and responses. The order of the codecs provided, matters for the presentation of the header, and may affect selection priority on the receiving endpoint.- Parameters:
supportedCodings
- the codecs this clients supports to encode/decode requests and responses accordingly and also used to advertise to the server.
-
-
Method Details
-
create
Deprecated.Description copied from interface:StreamingHttpClientFilterFactory
Creates aStreamingHttpClientFilter
using the providedStreamingHttpClientFilter
.- Specified by:
create
in interfaceStreamingHttpClientFilterFactory
- Parameters:
client
-FilterableStreamingHttpClient
to filter- Returns:
StreamingHttpClientFilter
using the providedStreamingHttpClientFilter
.
-
create
Deprecated.Description copied from interface:StreamingHttpConnectionFilterFactory
Create aStreamingHttpConnectionFilter
using the providedFilterableStreamingHttpConnection
.- Specified by:
create
in interfaceStreamingHttpConnectionFilterFactory
- Parameters:
connection
-FilterableStreamingHttpConnection
to filter- Returns:
StreamingHttpConnectionFilter
using the providedFilterableStreamingHttpConnection
.
-
requiredOffloads
Deprecated.Description copied from interface:HttpExecutionStrategyInfluencer
Return anExecutionStrategy
that describes the offloads required by the influencer.The provided default implementation requests offloading of all operations. Implementations that require no offloading should be careful to return
HttpExecutionStrategies.offloadNone()
rather thanHttpExecutionStrategies.offloadNever()
. Implementations should avoid returningHttpExecutionStrategies.defaultStrategy()
, instead returning the strategy they require orHttpExecutionStrategies.offloadAll()
if offloading for all paths is required (safe default).- Specified by:
requiredOffloads
in interfaceExecutionStrategyInfluencer<HttpExecutionStrategy>
- Specified by:
requiredOffloads
in interfaceHttpExecutionStrategyInfluencer
- Returns:
- the
ExecutionStrategy
required by the influencer.
-
ContentEncodingHttpRequesterFilter
.