• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
HttpResponseInterceptorList Interface Reference

Provides access to an ordered list of response interceptors. More...

Inheritance diagram for HttpResponseInterceptorList:
BasicHttpProcessor

Description

Lists are expected to be built upfront and used read-only afterwards for processing .

Author
Roland Weber
Version
Revision
554903
Since
4.0

Notice

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...
 

Member Function Documentation

◆ addResponseInterceptor() [1/2]

void addResponseInterceptor ( HttpResponseInterceptor  itcp)
Parameters
itcpthe response interceptor to add

Implemented in BasicHttpProcessor.

◆ addResponseInterceptor() [2/2]

void addResponseInterceptor ( HttpResponseInterceptor  itcp,
int  index 
)
Parameters
itcpthe response interceptor to add
indexthe index to insert the interceptor at

Implemented in BasicHttpProcessor.

◆ getResponseInterceptorCount()

int getResponseInterceptorCount ( )
Returns
the number of response interceptors in this list

Implemented in BasicHttpProcessor.

◆ getResponseInterceptor()

HttpResponseInterceptor getResponseInterceptor ( int  index)
Parameters
indexthe 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

Implemented in BasicHttpProcessor.

◆ removeResponseInterceptorByClass()

void removeResponseInterceptorByClass ( Class  clazz)
Parameters
clazzthe class of the instances to be removed.

Implemented in BasicHttpProcessor.

◆ setInterceptors()

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.

Parameters
itcpsthe list of response interceptors

Implemented in BasicHttpProcessor.