@Contract(threading=IMMUTABLE_CONDITIONAL) public final class DefaultHttpProcessor extends Object implements HttpProcessor
HttpProcessor
.Constructor and Description |
---|
DefaultHttpProcessor(HttpRequestInterceptor... requestInterceptors) |
DefaultHttpProcessor(HttpRequestInterceptor[] requestInterceptors,
HttpResponseInterceptor[] responseInterceptors) |
DefaultHttpProcessor(HttpResponseInterceptor... responseInterceptors) |
DefaultHttpProcessor(List<HttpRequestInterceptor> requestInterceptors,
List<HttpResponseInterceptor> responseInterceptors) |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Processes a request.
|
void |
process(HttpResponse response,
EntityDetails entity,
HttpContext context)
Processes a response.
|
public DefaultHttpProcessor(HttpRequestInterceptor[] requestInterceptors, HttpResponseInterceptor[] responseInterceptors)
public DefaultHttpProcessor(List<HttpRequestInterceptor> requestInterceptors, List<HttpResponseInterceptor> responseInterceptors)
public DefaultHttpProcessor(HttpRequestInterceptor... requestInterceptors)
public DefaultHttpProcessor(HttpResponseInterceptor... responseInterceptors)
public void process(HttpRequest request, EntityDetails entity, HttpContext context) throws IOException, HttpException
HttpRequestInterceptor
process
in interface HttpRequestInterceptor
request
- the request to processentity
- the request entity details or null
if not availablecontext
- the context for the requestIOException
- in case of an I/O errorHttpException
- in case of an HTTP protocol violationpublic void process(HttpResponse response, EntityDetails entity, HttpContext context) throws IOException, HttpException
HttpResponseInterceptor
process
in interface HttpResponseInterceptor
response
- the response to processentity
- the request entity details or null
if not availablecontext
- the context for the requestIOException
- in case of an I/O errorHttpException
- in case of an HTTP protocol violationCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.