FileDocCategorySizeDatePackage
HttpResponseInterceptorList.javaAPI DocAndroid 1.5 API3761Wed May 06 22:41:10 BST 2009org.apache.http.protocol

HttpResponseInterceptorList

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 {@link HttpProcessor processing}.
author
Roland Weber
version
$Revision: 554903 $
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public voidaddResponseInterceptor(org.apache.http.HttpResponseInterceptor itcp)
Appends a response interceptor to this list.

param
itcp the response interceptor to add

public voidaddResponseInterceptor(org.apache.http.HttpResponseInterceptor itcp, int index)
Inserts a response interceptor at the specified index.

param
itcp the response interceptor to add
param
index the index to insert the interceptor at

public voidclearResponseInterceptors()
Removes all response interceptors from this list.

public org.apache.http.HttpResponseInterceptorgetResponseInterceptor(int index)
Obtains a response interceptor from this list.

param
index the index of the interceptor to obtain, 0 for first
return
the interceptor at the given index, or null if the index is out of range

public intgetResponseInterceptorCount()
Obtains the current size of this list.

return
the number of response interceptors in this list

public voidremoveResponseInterceptorByClass(java.lang.Class clazz)
Removes all response interceptor of the specified class

param
clazz the class of the instances to be removed.

public voidsetInterceptors(java.util.List itcps)
Sets the response interceptors in this list. This list will be cleared and re-initialized to contain all response interceptors from the argument list. If the argument list includes elements that are not response interceptors, the behavior is implementation dependent.

param
itcps the list of response interceptors