@Contract(threading=IMMUTABLE) public class RequestAcceptEncoding extends Object implements HttpRequestInterceptor
Instances of this class are stateless, therefore they're thread-safe and immutable.
Modifier and Type | Field and Description |
---|---|
private String |
acceptEncoding |
Constructor and Description |
---|
RequestAcceptEncoding() |
RequestAcceptEncoding(List<String> encodings) |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpRequest request,
HttpContext context)
Processes a request.
|
private final String acceptEncoding
public RequestAcceptEncoding(List<String> encodings)
public RequestAcceptEncoding()
public void process(HttpRequest request, HttpContext context) throws HttpException, IOException
HttpRequestInterceptor
process
in interface HttpRequestInterceptor
request
- the request to preprocesscontext
- the context for the requestHttpException
- in case of an HTTP protocol violationIOException
- in case of an I/O errorWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses