Provides access to an ordered list of response interceptors. More...
Lists are expected to be built upfront and used read-only afterwards for processing .
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
Public Member Functions | |
void | addResponseInterceptor (HttpResponseInterceptor itcp) |
Appends a response interceptor to this list. More... | |
void | addResponseInterceptor (HttpResponseInterceptor itcp, int index) |
Inserts a response interceptor at the specified index. More... | |
int | getResponseInterceptorCount () |
Obtains the current size of this list. More... | |
HttpResponseInterceptor | getResponseInterceptor (int index) |
Obtains a response interceptor from this list. More... | |
void | clearResponseInterceptors () |
Removes all response interceptors from this list. | |
void | removeResponseInterceptorByClass (Class clazz) |
Removes all response interceptor of the specified class. More... | |
void | setInterceptors (List itcps) |
Sets the response interceptors in this list. More... | |
void addResponseInterceptor | ( | HttpResponseInterceptor | itcp | ) |
itcp | the response interceptor to add |
Implemented in BasicHttpProcessor.
void addResponseInterceptor | ( | HttpResponseInterceptor | itcp, |
int | index | ||
) |
itcp | the response interceptor to add |
index | the index to insert the interceptor at |
Implemented in BasicHttpProcessor.
int getResponseInterceptorCount | ( | ) |
Implemented in BasicHttpProcessor.
HttpResponseInterceptor getResponseInterceptor | ( | int | index | ) |
index | the index of the interceptor to obtain, 0 for first |
null
if the index is out of range Implemented in BasicHttpProcessor.
void removeResponseInterceptorByClass | ( | Class | clazz | ) |
clazz | the class of the instances to be removed. |
Implemented in BasicHttpProcessor.
void setInterceptors | ( | List | itcps | ) |
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.
itcps | the list of response interceptors |
Implemented in BasicHttpProcessor.