|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpRequestInterceptorList
Provides access to an ordered list of request interceptors.
Lists are expected to be built upfront and used read-only afterwards
for processing.
| Method Summary | |
|---|---|
void |
addRequestInterceptor(HttpRequestInterceptor interceptor)
Appends a request interceptor to this list. |
void |
addRequestInterceptor(HttpRequestInterceptor interceptor,
int index)
Inserts a request interceptor at the specified index. |
void |
clearRequestInterceptors()
Removes all request interceptors from this list. |
HttpRequestInterceptor |
getRequestInterceptor(int index)
Obtains a request interceptor from this list. |
int |
getRequestInterceptorCount()
Obtains the current size of this list. |
void |
removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz)
Removes all request interceptor of the specified class |
void |
setInterceptors(List<?> list)
Sets the request interceptors in this list. |
| Method Detail |
|---|
void addRequestInterceptor(HttpRequestInterceptor interceptor)
interceptor - the request interceptor to add
void addRequestInterceptor(HttpRequestInterceptor interceptor,
int index)
interceptor - the request interceptor to addindex - the index to insert the interceptor atint getRequestInterceptorCount()
HttpRequestInterceptor getRequestInterceptor(int index)
index - the index of the interceptor to obtain,
0 for first
null if the index is out of rangevoid clearRequestInterceptors()
void removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz)
clazz - the class of the instances to be removed.void setInterceptors(List<?> list)
list - the list of request interceptors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||