@Deprecated public final class ContentCodingHttpRequesterFilter extends Object implements StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory
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 and Description |
|---|
ContentCodingHttpRequesterFilter(List<ContentCodec> supportedCodings)
Deprecated.
Enable support of the provided encodings for requests and responses.
|
| Modifier and Type | Method and Description |
|---|---|
StreamingHttpClientFilter |
create(FilterableStreamingHttpClient client)
Deprecated.
Creates a
StreamingHttpClientFilter using the provided StreamingHttpClientFilter. |
StreamingHttpConnectionFilter |
create(FilterableStreamingHttpConnection connection)
Deprecated.
Create a
StreamingHttpConnectionFilter using the provided FilterableStreamingHttpConnection. |
HttpExecutionStrategy |
requiredOffloads()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultStreamingInfluencer, influenceStrategypublic ContentCodingHttpRequesterFilter(List<ContentCodec> supportedCodings)
supportedCodings - the codecs this clients supports to encode/decode requests and responses accordingly
and also used to advertise to the server.public StreamingHttpClientFilter create(FilterableStreamingHttpClient client)
StreamingHttpClientFilterFactoryStreamingHttpClientFilter using the provided StreamingHttpClientFilter.create in interface StreamingHttpClientFilterFactoryclient - FilterableStreamingHttpClient to filterStreamingHttpClientFilter using the provided StreamingHttpClientFilter.public StreamingHttpConnectionFilter create(FilterableStreamingHttpConnection connection)
StreamingHttpConnectionFilterFactoryStreamingHttpConnectionFilter using the provided FilterableStreamingHttpConnection.create in interface StreamingHttpConnectionFilterFactoryconnection - FilterableStreamingHttpConnection to filterStreamingHttpConnectionFilter using the provided FilterableStreamingHttpConnection.public HttpExecutionStrategy requiredOffloads()
HttpExecutionStrategyInfluencerThe provided default implementation requests offloading of all operations. Implementations that require no
offloading should be careful to return HttpExecutionStrategies.offloadNone() rather than
HttpExecutionStrategies.offloadNever(). Implementations should avoid returning
HttpExecutionStrategies.defaultStrategy(), instead returning the strategy they require or
HttpExecutionStrategies.offloadAll() if offloading for all paths is required (safe default).
requiredOffloads in interface HttpExecutionStrategyInfluencerrequiredOffloads in interface ExecutionStrategyInfluencer<HttpExecutionStrategy>