Top Description Fields Constructors Methods
org.apache.http.protocol

public final Class ImmutableHttpProcessor

extends Object
implements HttpProcessor
Class Inheritance
All Implemented Interfaces
org.apache.http.protocol.HttpProcessor, org.apache.http.HttpResponseInterceptor, org.apache.http.HttpRequestInterceptor
Annotations
@Contract
threading:IMMUTABLE_CONDITIONAL
Imports
java.io.IOException, java.util.List, org.apache.http.HttpException, .HttpRequest, .HttpRequestInterceptor, .HttpResponse, .HttpResponseInterceptor, org.apache.http.annotation.ThreadingBehavior, .Contract

Immutable HttpProcessor.
Since
4.1

Field Summary

Modifier and TypeField and Description
private final HttpRequestInterceptor[]
private final HttpResponseInterceptor[]

Constructor Summary

AccessConstructor and Description
public
ImmutableHttpProcessor(final HttpRequestInterceptor[] requestInterceptors, final HttpResponseInterceptor[] responseInterceptors)

public
ImmutableHttpProcessor(final List<HttpRequestInterceptor> requestInterceptors, final List<HttpResponseInterceptor> responseInterceptors)

public
ImmutableHttpProcessor(final HttpRequestInterceptorList requestInterceptors, final HttpResponseInterceptorList responseInterceptors)

Deprecated (4.3) do not use.
public
ImmutableHttpProcessor(final HttpRequestInterceptor... requestInterceptors)

public
ImmutableHttpProcessor(final HttpResponseInterceptor... responseInterceptors)

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpRequest
the request to preprocess
request
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpRequestInterceptor.process.

Processes a request.
public void
process(final HttpResponse
the response to postprocess
response
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpResponseInterceptor.process.

Processes a response.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

requestInterceptorsback to summary
private final HttpRequestInterceptor[] requestInterceptors
responseInterceptorsback to summary
private final HttpResponseInterceptor[] responseInterceptors

Constructor Detail

ImmutableHttpProcessorback to summary
public ImmutableHttpProcessor(final HttpRequestInterceptor[] requestInterceptors, final HttpResponseInterceptor[] responseInterceptors)
ImmutableHttpProcessorback to summary
public ImmutableHttpProcessor(final List<HttpRequestInterceptor> requestInterceptors, final List<HttpResponseInterceptor> responseInterceptors)
Since
4.3
ImmutableHttpProcessorback to summary
public ImmutableHttpProcessor(final HttpRequestInterceptorList requestInterceptors, final HttpResponseInterceptorList responseInterceptors)

Deprecated

(4.3) do not use.

Annotations
@Deprecated
ImmutableHttpProcessorback to summary
public ImmutableHttpProcessor(final HttpRequestInterceptor... requestInterceptors)
ImmutableHttpProcessorback to summary
public ImmutableHttpProcessor(final HttpResponseInterceptor... responseInterceptors)

Method Detail

processback to summary
public void process(final HttpRequest request, final HttpContext context) throws IOException, HttpException

Implements org.apache.http.HttpRequestInterceptor.process.

Doc from org.apache.http.HttpRequestInterceptor.process.

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.

Parameters
request:HttpRequest

the request to preprocess

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
IOException:
in case of an I/O error
HttpException:
in case of an HTTP protocol violation
processback to summary
public void process(final HttpResponse response, final HttpContext context) throws IOException, HttpException

Implements org.apache.http.HttpResponseInterceptor.process.

Doc from org.apache.http.HttpResponseInterceptor.process.

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.

Parameters
response:HttpResponse

the response to postprocess

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
IOException:
in case of an I/O error
HttpException:
in case of an HTTP protocol violation