@Contract(threading=STATELESS) public class RequestDefaultHeaders extends Object implements HttpRequestInterceptor
Constructor and Description |
---|
RequestDefaultHeaders() |
RequestDefaultHeaders(Collection<? extends Header> defaultHeaders) |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Processes a request.
|
public RequestDefaultHeaders()
public RequestDefaultHeaders(Collection<? extends Header> defaultHeaders)
public void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException
HttpRequestInterceptor
process
in interface HttpRequestInterceptor
request
- the request to processentity
- the request entity details or null
if not availablecontext
- the context for the requestHttpException
- in case of an HTTP protocol violationIOException
- in case of an I/O error