com.tibco.amf.sharedresource.runtime.core.http.httpclient
Interface HttpOutboundInterceptor


public interface HttpOutboundInterceptor

HttpOutboundInterceptor exposes to register and unregister request and response interceptors on HTTP Client connections.


Method Summary
 void addRequestInterceptor(org.apache.http.HttpRequestInterceptor interceptor)
          Appends a request interceptor to this list.
 void addRequestInterceptor(org.apache.http.HttpRequestInterceptor interceptor, int index)
          Inserts a request interceptor at the specified index.
 void addResponseInterceptor(org.apache.http.HttpResponseInterceptor interceptor)
          Appends a response interceptor to this list.
 void addResponseInterceptor(org.apache.http.HttpResponseInterceptor interceptor, int index)
          Inserts a response interceptor at the specified index.
 void clearRequestInterceptors()
          Removes all request interceptors from this list.
 void clearResponseInterceptors()
          Removes all response interceptors from this list.
 void removeRequestInterceptorByClass(java.lang.Class<? extends org.apache.http.HttpRequestInterceptor> clazz)
          Removes all request interceptor of the specified class
 void removeResponseInterceptorByClass(java.lang.Class<? extends org.apache.http.HttpResponseInterceptor> clazz)
          Removes all response interceptor of the specified class
 

Method Detail

addRequestInterceptor

void addRequestInterceptor(org.apache.http.HttpRequestInterceptor interceptor)
Appends a request interceptor to this list.

Parameters:
interceptor - the request interceptor to add

addRequestInterceptor

void addRequestInterceptor(org.apache.http.HttpRequestInterceptor interceptor,
                           int index)
Inserts a request interceptor at the specified index.

Parameters:
interceptor - the request interceptor to add
index - the index to insert the interceptor at

clearRequestInterceptors

void clearRequestInterceptors()
Removes all request interceptors from this list.


removeRequestInterceptorByClass

void removeRequestInterceptorByClass(java.lang.Class<? extends org.apache.http.HttpRequestInterceptor> clazz)
Removes all request interceptor of the specified class

Parameters:
clazz - the class of the instances to be removed.

addResponseInterceptor

void addResponseInterceptor(org.apache.http.HttpResponseInterceptor interceptor)
Appends a response interceptor to this list.

Parameters:
interceptor - the response interceptor to add

addResponseInterceptor

void addResponseInterceptor(org.apache.http.HttpResponseInterceptor interceptor,
                            int index)
Inserts a response interceptor at the specified index.

Parameters:
interceptor - the response interceptor to add
index - the index to insert the interceptor at

clearResponseInterceptors

void clearResponseInterceptors()
Removes all response interceptors from this list.


removeResponseInterceptorByClass

void removeResponseInterceptorByClass(java.lang.Class<? extends org.apache.http.HttpResponseInterceptor> clazz)
Removes all response interceptor of the specified class

Parameters:
clazz - the class of the instances to be removed.


Copyright © 2011 TIBCO Software Inc. All Rights Reserved.