|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.protocol.BasicHttpProcessor
@Deprecated public final class 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.
Field Summary | |
---|---|
protected List<HttpRequestInterceptor> |
requestInterceptors
Deprecated. |
protected List<HttpResponseInterceptor> |
responseInterceptors
Deprecated. |
Constructor Summary | |
---|---|
BasicHttpProcessor()
Deprecated. |
Method Summary | |
---|---|
void |
addInterceptor(HttpRequestInterceptor interceptor)
Deprecated. |
void |
addInterceptor(HttpRequestInterceptor interceptor,
int index)
Deprecated. |
void |
addInterceptor(HttpResponseInterceptor interceptor)
Deprecated. |
void |
addInterceptor(HttpResponseInterceptor interceptor,
int index)
Deprecated. |
void |
addRequestInterceptor(HttpRequestInterceptor itcp)
Deprecated. Appends a request interceptor to this list. |
void |
addRequestInterceptor(HttpRequestInterceptor itcp,
int index)
Deprecated. Inserts a request interceptor at the specified index. |
void |
addResponseInterceptor(HttpResponseInterceptor itcp)
Deprecated. Appends a response interceptor to this list. |
void |
addResponseInterceptor(HttpResponseInterceptor itcp,
int index)
Deprecated. Inserts a response interceptor at the specified index. |
void |
clearInterceptors()
Deprecated. Clears both interceptor lists maintained by this processor. |
void |
clearRequestInterceptors()
Deprecated. Removes all request interceptors from this list. |
void |
clearResponseInterceptors()
Deprecated. Removes all response interceptors from this list. |
Object |
clone()
Deprecated. |
BasicHttpProcessor |
copy()
Deprecated. Creates a copy of this instance |
protected void |
copyInterceptors(BasicHttpProcessor target)
Deprecated. Sets up the target to have the same list of interceptors as the current instance. |
HttpRequestInterceptor |
getRequestInterceptor(int index)
Deprecated. Obtains a request interceptor from this list. |
int |
getRequestInterceptorCount()
Deprecated. Obtains the current size of this list. |
HttpResponseInterceptor |
getResponseInterceptor(int index)
Deprecated. Obtains a response interceptor from this list. |
int |
getResponseInterceptorCount()
Deprecated. Obtains the current size of this list. |
void |
process(HttpRequest request,
HttpContext context)
Deprecated. Processes a request. |
void |
process(HttpResponse response,
HttpContext context)
Deprecated. Processes a response. |
void |
removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz)
Deprecated. Removes all request interceptor of the specified class |
void |
removeResponseInterceptorByClass(Class<? extends HttpResponseInterceptor> clazz)
Deprecated. Removes all response interceptor of the specified class |
void |
setInterceptors(List<?> list)
Deprecated. Sets the interceptor lists. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final List<HttpRequestInterceptor> requestInterceptors
protected final List<HttpResponseInterceptor> responseInterceptors
Constructor Detail |
---|
public BasicHttpProcessor()
Method Detail |
---|
public void addRequestInterceptor(HttpRequestInterceptor itcp)
HttpRequestInterceptorList
addRequestInterceptor
in interface HttpRequestInterceptorList
itcp
- the request interceptor to addpublic void addRequestInterceptor(HttpRequestInterceptor itcp, int index)
HttpRequestInterceptorList
addRequestInterceptor
in interface HttpRequestInterceptorList
itcp
- the request interceptor to addindex
- the index to insert the interceptor atpublic void addResponseInterceptor(HttpResponseInterceptor itcp, int index)
HttpResponseInterceptorList
addResponseInterceptor
in interface HttpResponseInterceptorList
itcp
- the response interceptor to addindex
- the index to insert the interceptor atpublic void removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz)
HttpRequestInterceptorList
removeRequestInterceptorByClass
in interface HttpRequestInterceptorList
clazz
- the class of the instances to be removed.public void removeResponseInterceptorByClass(Class<? extends HttpResponseInterceptor> clazz)
HttpResponseInterceptorList
removeResponseInterceptorByClass
in interface HttpResponseInterceptorList
clazz
- the class of the instances to be removed.public final void addInterceptor(HttpRequestInterceptor interceptor)
public final void addInterceptor(HttpRequestInterceptor interceptor, int index)
public int getRequestInterceptorCount()
HttpRequestInterceptorList
getRequestInterceptorCount
in interface HttpRequestInterceptorList
public HttpRequestInterceptor getRequestInterceptor(int index)
HttpRequestInterceptorList
getRequestInterceptor
in interface HttpRequestInterceptorList
index
- the index of the interceptor to obtain,
0 for first
null
if the index is out of rangepublic void clearRequestInterceptors()
HttpRequestInterceptorList
clearRequestInterceptors
in interface HttpRequestInterceptorList
public void addResponseInterceptor(HttpResponseInterceptor itcp)
HttpResponseInterceptorList
addResponseInterceptor
in interface HttpResponseInterceptorList
itcp
- the response interceptor to addpublic final void addInterceptor(HttpResponseInterceptor interceptor)
public final void addInterceptor(HttpResponseInterceptor interceptor, int index)
public int getResponseInterceptorCount()
HttpResponseInterceptorList
getResponseInterceptorCount
in interface HttpResponseInterceptorList
public HttpResponseInterceptor getResponseInterceptor(int index)
HttpResponseInterceptorList
getResponseInterceptor
in interface HttpResponseInterceptorList
index
- the index of the interceptor to obtain,
0 for first
null
if the index is out of rangepublic void clearResponseInterceptors()
HttpResponseInterceptorList
clearResponseInterceptors
in interface HttpResponseInterceptorList
public void setInterceptors(List<?> list)
setInterceptors
in interface HttpRequestInterceptorList
setInterceptors
in interface HttpResponseInterceptorList
list
- the list of request and response interceptors
from which to initializepublic void clearInterceptors()
public void process(HttpRequest request, HttpContext context) throws IOException, HttpException
HttpRequestInterceptor
process
in interface HttpRequestInterceptor
request
- the request to preprocesscontext
- the context for the request
IOException
- in case of an I/O error
HttpException
- in case of an HTTP protocol violationpublic void process(HttpResponse response, HttpContext context) throws IOException, HttpException
HttpResponseInterceptor
process
in interface HttpResponseInterceptor
response
- the response to postprocesscontext
- the context for the request
IOException
- in case of an I/O error
HttpException
- in case of an HTTP protocol violationprotected void copyInterceptors(BasicHttpProcessor target)
target
- object to be initialisedpublic BasicHttpProcessor copy()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |