@Contract(threading=IMMUTABLE)
public class RequestAcceptEncoding
extends java.lang.Object
implements org.apache.http.HttpRequestInterceptor
Instances of this class are stateless, therefore they're thread-safe and immutable.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
acceptEncoding |
Constructor and Description |
---|
RequestAcceptEncoding() |
RequestAcceptEncoding(java.util.List<java.lang.String> encodings) |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
public RequestAcceptEncoding(java.util.List<java.lang.String> encodings)
public RequestAcceptEncoding()
public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
process
in interface org.apache.http.HttpRequestInterceptor
org.apache.http.HttpException
java.io.IOException