Deprecated
(4.3)
HttpProcessor.
Please note access to the internal structures of this class is not synchronized and therefore this class may be thread-unsafe.
| Modifier and Type | Field and Description |
|---|---|
| protected final List | |
| protected final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | addRequestInterceptor(final HttpRequestInterceptor
the request interceptor to add itcp)Implements org. |
| public void | addRequestInterceptor(final HttpRequestInterceptor
the request interceptor to add itcp, final int the index to insert the interceptor at index)Implements org. |
| public void | addResponseInterceptor(final HttpResponseInterceptor
the response interceptor to add itcp, final int the index to insert the interceptor at index)Implements org. |
| public void | addResponseInterceptor(final HttpResponseInterceptor
the response interceptor to add itcp)Implements org. |
| public void | |
| public void | clearRequestInterceptors()
Implements org. |
| public void | clearResponseInterceptors()
Implements org. |
| public Object | |
| public BasicHttpProcessor | Returns: new instance of the BasicHttpProcessor
Deprecated
as a consequence of
Creates a copy of this instance
BasicHttpProcessor being deprecated.
|
| protected void | copyInterceptors(final BasicHttpProcessor
object to be initialised target)
Deprecated
as a consequence of
Sets up the target to have the same list of interceptors
as the current instance.
BasicHttpProcessor being deprecated.
|
| public HttpRequestInterceptor | getRequestInterceptor(final int
the index of the interceptor to obtain,
0 for first index)Implements org. |
| public int | getRequestInterceptorCount()
Implements org. |
| public HttpResponseInterceptor | getResponseInterceptor(final int
the index of the interceptor to obtain,
0 for first index)Implements org. |
| public int | getResponseInterceptorCount()
Implements org. |
| public void | process(final HttpRequest
the request to preprocess request, final HttpContext the context for the request context)Implements org. |
| public void | process(final HttpResponse
the response to postprocess response, final HttpContext the context for the request context)Implements org. |
| public void | removeRequestInterceptorByClass(final Class<? extends HttpRequestInterceptor>
the class of the instances to be removed. clazz)Implements org. |
| public void | removeResponseInterceptorByClass(final Class<? extends HttpResponseInterceptor>
the class of the instances to be removed. clazz)Implements org. |
| public void | setInterceptors(final List<?>
the list of request and response interceptors
from which to initialize list)Implements org. |
| requestInterceptors | back to summary |
|---|---|
| protected final List<HttpRequestInterceptor> requestInterceptors | |
| responseInterceptors | back to summary |
|---|---|
| protected final List<HttpResponseInterceptor> responseInterceptors | |
| BasicHttpProcessor | back to summary |
|---|---|
| public BasicHttpProcessor() | |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(final HttpRequestInterceptor interceptor) | |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(final HttpRequestInterceptor interceptor, final int index) | |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(final HttpResponseInterceptor interceptor) | |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(final HttpResponseInterceptor interceptor, final int index) | |
| addRequestInterceptor | back to summary |
|---|---|
| public void addRequestInterceptor(final HttpRequestInterceptor itcp) Implements org. Doc from org. Appends a request interceptor to this list.
| |
| addRequestInterceptor | back to summary |
|---|---|
| public void addRequestInterceptor(final HttpRequestInterceptor itcp, final int index) Implements org. Doc from org. Inserts a request interceptor at the specified index.
| |
| addResponseInterceptor | back to summary |
|---|---|
| public void addResponseInterceptor(final HttpResponseInterceptor itcp, final int index) Implements org. Doc from org. Inserts a response interceptor at the specified index.
| |
| addResponseInterceptor | back to summary |
|---|---|
| public void addResponseInterceptor(final HttpResponseInterceptor itcp) Implements org. Doc from org. Appends a response interceptor to this list.
| |
| clearInterceptors | back to summary |
|---|---|
| public void clearInterceptors() Clears both interceptor lists maintained by this processor. | |
| clearRequestInterceptors | back to summary |
|---|---|
| public void clearRequestInterceptors() Implements org. Doc from org. Removes all request interceptors from this list.
| |
| clearResponseInterceptors | back to summary |
|---|---|
| public void clearResponseInterceptors() Implements org. Doc from org. Removes all response interceptors from this list.
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| copy | back to summary |
|---|---|
| public BasicHttpProcessor copy()
Deprecated as a consequence of Creates a copy of this instance
| |
| copyInterceptors | back to summary |
|---|---|
| protected void copyInterceptors(final BasicHttpProcessor target)
Deprecated as a consequence of Sets up the target to have the same list of interceptors as the current instance.
| |
| getRequestInterceptor | back to summary |
|---|---|
| public HttpRequestInterceptor getRequestInterceptor(final int index) Implements org. Doc from org. Obtains a request interceptor from this list.
| |
| getRequestInterceptorCount | back to summary |
|---|---|
| public int getRequestInterceptorCount() Implements org. Doc from org. Obtains the current size of this list.
| |
| getResponseInterceptor | back to summary |
|---|---|
| public HttpResponseInterceptor getResponseInterceptor(final int index) Implements org. Doc from org. Obtains a response interceptor from this list.
| |
| getResponseInterceptorCount | back to summary |
|---|---|
| public int getResponseInterceptorCount() Implements org. Doc from org. Obtains the current size of this list.
| |
| process | back to summary |
|---|---|
| public void process(final HttpRequest request, final HttpContext context) throws IOException, HttpException Implements org. Doc from org. 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.
| |
| process | back to summary |
|---|---|
| public void process(final HttpResponse response, final HttpContext context) throws IOException, HttpException Implements org. Doc from org. 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.
| |
| removeRequestInterceptorByClass | back to summary |
|---|---|
| public void removeRequestInterceptorByClass(final Class<? extends HttpRequestInterceptor> clazz) Implements org. Doc from org. Removes all request interceptor of the specified class
| |
| removeResponseInterceptorByClass | back to summary |
|---|---|
| public void removeResponseInterceptorByClass(final Class<? extends HttpResponseInterceptor> clazz) Implements org. Doc from org. Removes all response interceptor of the specified class
| |
| setInterceptors | back to summary |
|---|---|
| public void setInterceptors(final List<?> list) Implements org. 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. | |