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


public interface HttpClientConnectionFactory

A factory for connections to the physical Http Server. Returns pooled/non-pooled connections based on configuration. User of this factory has an option either to use the direct org.apache.http.HttpClientConnection or HttpClientWrapper(restricted API of org.apache.http.client.HttpClient).


Method Summary
 org.apache.http.HttpHost getHostConfiguration()
          Returns HttpHost configuration bound with this factory.
 HttpClientWrapper getHttpClient()
          Returns the HttpClientWrapper bound with this factory.
 org.apache.http.HttpClientConnection getHttpConnection()
          Returns the http connection with bound configuration.
 org.apache.http.HttpClientConnection getHttpConnection(org.apache.http.conn.routing.HttpRoute route)
          Returns the http connection for the given HttpRoute.
 org.apache.http.params.HttpParams getHttpParams()
          Returns HTTPParams bound with this factory.
 

Method Detail

getHttpConnection

org.apache.http.HttpClientConnection getHttpConnection()
                                                       throws org.apache.http.HttpException
Returns the http connection with bound configuration.

Returns:
HttpClientConnection
Throws:
org.apache.http.HttpException - the http exception

getHttpConnection

org.apache.http.HttpClientConnection getHttpConnection(org.apache.http.conn.routing.HttpRoute route)
                                                       throws org.apache.http.HttpException
Returns the http connection for the given HttpRoute.

Parameters:
route -
Returns:
ManagedClientConnection
Throws:
org.apache.http.HttpException

getHttpClient

HttpClientWrapper getHttpClient()
                                throws org.apache.http.HttpException
Returns the HttpClientWrapper bound with this factory.

Throws:
org.apache.http.HttpException

getHostConfiguration

org.apache.http.HttpHost getHostConfiguration()
Returns HttpHost configuration bound with this factory.

Returns:
HostConfiguration

getHttpParams

org.apache.http.params.HttpParams getHttpParams()
Returns HTTPParams bound with this factory.

Returns:
HttpParams


Copyright © 2011 TIBCO Software Inc. All Rights Reserved.