org.jboss.soa.esb.http
Class ESBMultiThreadedHttpConnectionManager

java.lang.Object
  extended by org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
      extended by org.jboss.soa.esb.http.ESBMultiThreadedHttpConnectionManager
All Implemented Interfaces:
org.apache.commons.httpclient.HttpConnectionManager

public class ESBMultiThreadedHttpConnectionManager
extends org.apache.commons.httpclient.MultiThreadedHttpConnectionManager

Connection manager which overrides the host configuration.

Author:
kevin

Field Summary
 
Fields inherited from class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
DEFAULT_MAX_HOST_CONNECTIONS, DEFAULT_MAX_TOTAL_CONNECTIONS
 
Constructor Summary
ESBMultiThreadedHttpConnectionManager()
           
 
Method Summary
 org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
           
 org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration, long timeout)
           
 int getConnectionsInPool(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
           
 int getConnectionsInUse(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
           
 org.apache.commons.httpclient.HttpConnection getConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration hostConfiguration, long timeout)
           
 org.apache.commons.httpclient.HostConfiguration getHostConfiguration()
           
 void setHostConfiguration(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
           
 
Methods inherited from class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
closeIdleConnections, deleteClosedConnections, getConnectionsInPool, getConnectionsInUse, getMaxConnectionsPerHost, getMaxTotalConnections, getParams, isConnectionStaleCheckingEnabled, releaseConnection, setConnectionStaleCheckingEnabled, setMaxConnectionsPerHost, setMaxTotalConnections, setParams, shutdown, shutdownAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESBMultiThreadedHttpConnectionManager

public ESBMultiThreadedHttpConnectionManager()
Method Detail

setHostConfiguration

public void setHostConfiguration(org.apache.commons.httpclient.HostConfiguration hostConfiguration)

getHostConfiguration

public org.apache.commons.httpclient.HostConfiguration getHostConfiguration()

getConnection

public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
Specified by:
getConnection in interface org.apache.commons.httpclient.HttpConnectionManager
Overrides:
getConnection in class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager

getConnection

public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
                                                                  long timeout)
                                                           throws org.apache.commons.httpclient.HttpException
Specified by:
getConnection in interface org.apache.commons.httpclient.HttpConnectionManager
Overrides:
getConnection in class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
Throws:
org.apache.commons.httpclient.HttpException

getConnectionWithTimeout

public org.apache.commons.httpclient.HttpConnection getConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
                                                                             long timeout)
                                                                      throws org.apache.commons.httpclient.ConnectionPoolTimeoutException
Specified by:
getConnectionWithTimeout in interface org.apache.commons.httpclient.HttpConnectionManager
Overrides:
getConnectionWithTimeout in class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
Throws:
org.apache.commons.httpclient.ConnectionPoolTimeoutException

getConnectionsInPool

public int getConnectionsInPool(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
Overrides:
getConnectionsInPool in class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager

getConnectionsInUse

public int getConnectionsInUse(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
Overrides:
getConnectionsInUse in class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager