Package org.apache.http.protocol
Class ImmutableHttpProcessor
java.lang.Object
org.apache.http.protocol.ImmutableHttpProcessor
- All Implemented Interfaces:
HttpRequestInterceptor
,HttpResponseInterceptor
,HttpProcessor
@Contract(threading=IMMUTABLE_CONDITIONAL)
public final class ImmutableHttpProcessor
extends Object
implements HttpProcessor
Immutable
HttpProcessor
.- Since:
- 4.1
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableHttpProcessor
(List<HttpRequestInterceptor> requestInterceptors, List<HttpResponseInterceptor> responseInterceptors) ImmutableHttpProcessor
(HttpRequestInterceptor... requestInterceptors) ImmutableHttpProcessor
(HttpRequestInterceptor[] requestInterceptors, HttpResponseInterceptor[] responseInterceptors) ImmutableHttpProcessor
(HttpResponseInterceptor... responseInterceptors) ImmutableHttpProcessor
(HttpRequestInterceptorList requestInterceptors, HttpResponseInterceptorList responseInterceptors) Deprecated.(4.3) do not use. -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(HttpRequest request, HttpContext context) Processes a request.void
process
(HttpResponse response, HttpContext context) Processes a response.
-
Constructor Details
-
ImmutableHttpProcessor
public ImmutableHttpProcessor(HttpRequestInterceptor[] requestInterceptors, HttpResponseInterceptor[] responseInterceptors) -
ImmutableHttpProcessor
public ImmutableHttpProcessor(List<HttpRequestInterceptor> requestInterceptors, List<HttpResponseInterceptor> responseInterceptors) - Since:
- 4.3
-
ImmutableHttpProcessor
@Deprecated public ImmutableHttpProcessor(HttpRequestInterceptorList requestInterceptors, HttpResponseInterceptorList responseInterceptors) Deprecated.(4.3) do not use. -
ImmutableHttpProcessor
-
ImmutableHttpProcessor
-
-
Method Details
-
process
Description copied from interface:HttpRequestInterceptor
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.- Specified by:
process
in interfaceHttpRequestInterceptor
- Parameters:
request
- the request to preprocesscontext
- the context for the request- Throws:
IOException
- in case of an I/O errorHttpException
- in case of an HTTP protocol violation
-
process
Description copied from interface:HttpResponseInterceptor
Processes a response. On the server side, this step is performed before the response is sent to the client. On the client side, this step is performed on incoming messages before the message body is evaluated.- Specified by:
process
in interfaceHttpResponseInterceptor
- Parameters:
response
- the response to postprocesscontext
- the context for the request- Throws:
IOException
- in case of an I/O errorHttpException
- in case of an HTTP protocol violation
-