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