Top Description Fields Constructors Methods
org.apache.http.client.protocol

public Class RequestAcceptEncoding

extends Object
implements HttpRequestInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpRequestInterceptor
Annotations
@Contract
threading:IMMUTABLE
Imports
java.io.IOException, java.util.List, org.apache.http.HttpException, .HttpRequest, .HttpRequestInterceptor, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.client.config.RequestConfig, org.apache.http.protocol.HttpContext

Class responsible for handling Content Encoding requests in HTTP.

Instances of this class are stateless, therefore they're thread-safe and immutable.

Since
4.1
See Also
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
RequestAcceptEncoding(final List<String> encodings)

public

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpRequest
the request to preprocess
request
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpRequestInterceptor.process.

Processes a request.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

acceptEncodingback to summary
private final String acceptEncoding

Constructor Detail

RequestAcceptEncodingback to summary
public RequestAcceptEncoding(final List<String> encodings)
Since
4.4
RequestAcceptEncodingback to summary
public RequestAcceptEncoding()

Method Detail

processback to summary
public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException

Implements org.apache.http.HttpRequestInterceptor.process.

Doc from org.apache.http.HttpRequestInterceptor.process.

Processes a request. On the client side, this step is performed before the request is sent to the server. On the server side, this step is performed on incoming messages before the message body is evaluated.

Parameters
request:HttpRequest

the request to preprocess

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
HttpException:
in case of an HTTP protocol violation
IOException:
in case of an I/O error