Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

HttpResponseInterceptorList

org.apache.http.protocol.HttpResponseInterceptorList
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void addResponseInterceptor ( HttpResponseInterceptor itcp, int index)
Inserts a response interceptor at the specified index.
abstract void addResponseInterceptor ( HttpResponseInterceptor itcp)
Appends a response interceptor to this list.
abstract void clearResponseInterceptors ()
Removes all response interceptors from this list.
abstract HttpResponseInterceptor getResponseInterceptor (int index)
Obtains a response interceptor from this list.
abstract int getResponseInterceptorCount ()
Obtains the current size of this list.
abstract void removeResponseInterceptorByClass ( Class clazz)
Removes all response interceptor of the specified class
abstract void setInterceptors ( List itcps)
Sets the response interceptors in this list.

Public Methods

public abstract void addResponseInterceptor ( HttpResponseInterceptor itcp, int index)

Added in API level 1

Inserts a response interceptor at the specified index.

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

public abstract void addResponseInterceptor ( HttpResponseInterceptor itcp)

Added in API level 1

Appends a response interceptor to this list.

Parameters
itcp the response interceptor to add

public abstract void clearResponseInterceptors ()

Added in API level 1

Removes all response interceptors from this list.

public abstract HttpResponseInterceptor getResponseInterceptor (int index)

Added in API level 1

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 abstract int getResponseInterceptorCount ()

Added in API level 1

Obtains the current size of this list.

Returns
  • the number of response interceptors in this list

public abstract void removeResponseInterceptorByClass ( Class clazz)

Added in API level 1

Removes all response interceptor of the specified class

Parameters
clazz the class of the instances to be removed.

public abstract void setInterceptors ( List itcps)

Added in API level 1

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