Android
org.apache.http.protocol
public interface

org.apache.http.protocol.HttpResponseInterceptorList

org.apache.http.protocol.HttpResponseInterceptorList

Provides access to an ordered list of response interceptors. Lists are expected to be built upfront and used read-only afterwards for processing.

Known Indirect Subclasses

Summary

Public Methods

          void  addResponseInterceptor(HttpResponseInterceptor itcp, int index)
Inserts a response interceptor at the specified index.
          void  addResponseInterceptor(HttpResponseInterceptor itcp)
Appends a response interceptor to this list.
          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 clazz)
Removes all response interceptor of the specified class
          void  setInterceptors(List itcps)
Sets the response interceptors in this list.

Details

Public Methods

public void addResponseInterceptor(HttpResponseInterceptor itcp, int index)

Inserts a response interceptor at the specified index.

Parameters

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

public void addResponseInterceptor(HttpResponseInterceptor itcp)

Appends a response interceptor to this list.

Parameters

itcp the response interceptor to add

public void clearResponseInterceptors()

Removes all response interceptors from this list.

public HttpResponseInterceptor getResponseInterceptor(int index)

Obtains a response interceptor from this list.

Parameters

index the index of the interceptor to obtain, 0 for first

Returns

  • the interceptor at the given index, or null if the index is out of range

public int getResponseInterceptorCount()

Obtains the current size of this list.

Returns

  • the number of response interceptors in this list

public void removeResponseInterceptorByClass(Class clazz)

Removes all response interceptor of the specified class

Parameters

clazz the class of the instances to be removed.

public void setInterceptors(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.

Parameters

itcps the list of response interceptors
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48