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 voidprocess(HttpRequest request, HttpContext context)Processes a request.voidprocess(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:HttpRequestInterceptorProcesses 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:
processin 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:HttpResponseInterceptorProcesses 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:
processin 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
-
-