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

HttpRequestInterceptorList

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

Fields Summary
Constructors Summary
Methods Summary
public voidaddRequestInterceptor(org.apache.http.HttpRequestInterceptor itcp)
Appends a request interceptor to this list.

param
itcp the request interceptor to add

public voidaddRequestInterceptor(org.apache.http.HttpRequestInterceptor itcp, int index)
Inserts a request interceptor at the specified index.

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

public voidclearRequestInterceptors()
Removes all request interceptors from this list.

public org.apache.http.HttpRequestInterceptorgetRequestInterceptor(int index)
Obtains a request 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 intgetRequestInterceptorCount()
Obtains the current size of this list.

return
the number of request interceptors in this list

public voidremoveRequestInterceptorByClass(java.lang.Class clazz)
Removes all request interceptor of the specified class

param
clazz the class of the instances to be removed.

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

param
itcps the list of request interceptors