java.lang.Object | |
↳ | org.apache.http.protocol.BasicHttpProcessor |
Default implementation of HttpProcessor
.
Please note access to the internal structures of this class is not synchronized and therefore this class may be thread-unsafe.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
requestInterceptors | |||||||||||
responseInterceptors |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Inserts a request interceptor at the specified index.
| |||||||||||
Appends a request interceptor to this list.
| |||||||||||
Inserts a response interceptor at the specified index.
| |||||||||||
Appends a response interceptor to this list.
| |||||||||||
Clears both interceptor lists maintained by this processor.
| |||||||||||
Removes all request interceptors from this list.
| |||||||||||
Removes all response interceptors from this list.
| |||||||||||
Creates a copy of this instance
| |||||||||||
Obtains a request interceptor from this list.
| |||||||||||
Obtains the current size of this list.
| |||||||||||
Obtains a response interceptor from this list.
| |||||||||||
Obtains the current size of this list.
| |||||||||||
Processes a response.
| |||||||||||
Processes a request.
| |||||||||||
Removes all request interceptor of the specified class
| |||||||||||
Removes all response interceptor of the specified class
| |||||||||||
Sets the interceptor lists.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets up the target to have the same list of interceptors
as the current instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpRequestInterceptor
| |||||||||||
From interface
org.apache.http.HttpResponseInterceptor
| |||||||||||
From interface
org.apache.http.protocol.HttpRequestInterceptorList
| |||||||||||
From interface
org.apache.http.protocol.HttpResponseInterceptorList
|
Inserts a request interceptor at the specified index.
itcp | the request interceptor to add |
---|---|
index | the index to insert the interceptor at |
Appends a request interceptor to this list.
itcp | the request interceptor to add |
---|
Inserts a response interceptor at the specified index.
itcp | the response interceptor to add |
---|---|
index | the index to insert the interceptor at |
Appends a response interceptor to this list.
itcp | the response interceptor to add |
---|
Clears both interceptor lists maintained by this processor.
Removes all request interceptors from this list.
Removes all response interceptors from this list.
Creates a copy of this instance
Obtains a request interceptor from this list.
index | the index of the interceptor to obtain, 0 for first |
---|
null
if the index is out of range
Obtains the current size of this list.
Obtains a response interceptor from this list.
index | the index of the interceptor to obtain, 0 for first |
---|
null
if the index is out of range
Obtains the current size of this list.
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.
response | the response to postprocess |
---|---|
context | the context for the request |
HttpException | |
---|---|
IOException |
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.
request | the request to preprocess |
---|---|
context | the context for the request |
HttpException | |
---|---|
IOException |
Removes all request interceptor of the specified class
clazz | the class of the instances to be removed. |
---|
Removes all response interceptor of the specified class
clazz | the class of the instances to be removed. |
---|
Sets the interceptor lists. First, both interceptor lists maintained by this processor will be cleared. Subsequently, elements of the argument list that are request interceptors will be added to the request interceptor list. Elements that are response interceptors will be added to the response interceptor list. Elements that are both request and response interceptor will be added to both lists. Elements that are neither request nor response interceptor will be ignored.
list | the list of request and response interceptors from which to initialize |
---|
Sets up the target to have the same list of interceptors as the current instance.
target | object to be initialised |
---|