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 java.lang.Object implements HttpProcessor
ImmutableHttpProcessor
.- Since:
- 4.1
-
-
Constructor Summary
Constructors Constructor Description ImmutableHttpProcessor(java.util.List<HttpRequestInterceptor> requestInterceptors, java.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(HttpRequest request, HttpContext context)
Processes a request.void
process(HttpResponse response, HttpContext context)
Processes a response.
-
-
-
Constructor Detail
-
ImmutableHttpProcessor
public ImmutableHttpProcessor(HttpRequestInterceptor[] requestInterceptors, HttpResponseInterceptor[] responseInterceptors)
-
ImmutableHttpProcessor
public ImmutableHttpProcessor(java.util.List<HttpRequestInterceptor> requestInterceptors, java.util.List<HttpResponseInterceptor> responseInterceptors)
- Since:
- 4.3
-
ImmutableHttpProcessor
@Deprecated public ImmutableHttpProcessor(HttpRequestInterceptorList requestInterceptors, HttpResponseInterceptorList responseInterceptors)
Deprecated.(4.3) do not use.
-
ImmutableHttpProcessor
public ImmutableHttpProcessor(HttpRequestInterceptor... requestInterceptors)
-
ImmutableHttpProcessor
public ImmutableHttpProcessor(HttpResponseInterceptor... responseInterceptors)
-
-
Method Detail
-
process
public void process(HttpRequest request, HttpContext context) throws java.io.IOException, HttpException
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:
java.io.IOException
- in case of an I/O errorHttpException
- in case of an HTTP protocol violation
-
process
public void process(HttpResponse response, HttpContext context) throws java.io.IOException, HttpException
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:
java.io.IOException
- in case of an I/O errorHttpException
- in case of an HTTP protocol violation
-
-