| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpConnectionManager
An interface for classes that manage HttpConnections.
HttpConnection, 
HttpClient.HttpClient(HttpConnectionManager)| Method Summary | |
|---|---|
|  void | closeIdleConnections(long idleTimeout)Closes connections that have been idle for at least the given amount of time. | 
|  HttpConnection | getConnection(HostConfiguration hostConfiguration)Gets an HttpConnection for a given host configuration. | 
|  HttpConnection | getConnection(HostConfiguration hostConfiguration,
              long timeout)Deprecated. Use #getConnectionWithTimeout(HostConfiguration, long) | 
|  HttpConnection | getConnectionWithTimeout(HostConfiguration hostConfiguration,
                         long timeout)Gets an HttpConnection for a given host configuration. | 
|  HttpConnectionManagerParams | getParams()Returns parametersassociated 
 with this connection manager. | 
|  void | releaseConnection(HttpConnection conn)Releases the given HttpConnection for use by other requests. | 
|  void | setParams(HttpConnectionManagerParams params)Assigns parametersfor this 
 connection manager. | 
| Method Detail | 
|---|
HttpConnection getConnection(HostConfiguration hostConfiguration)
hostConfiguration - the host configuration to use to configure the
 connection
HttpConnection.setHttpConnectionManager(HttpConnectionManager)
HttpConnection getConnection(HostConfiguration hostConfiguration,
                             long timeout)
                             throws HttpException
hostConfiguration - the host configuration to use to configure the
 connectiontimeout - - the time (in milliseconds) to wait for a connection to
 become available, 0 to specify an infinite timeout
HttpException - if no connection becomes available before the
 timeout expiresHttpConnection.setHttpConnectionManager(HttpConnectionManager)
HttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration,
                                        long timeout)
                                        throws ConnectionPoolTimeoutException
hostConfiguration - the host configuration to use to configure the
 connectiontimeout - - the time (in milliseconds) to wait for a connection to
 become available, 0 to specify an infinite timeout
ConnectionPoolTimeoutException - if no connection becomes available before the
 timeout expiresHttpConnection.setHttpConnectionManager(HttpConnectionManager)void releaseConnection(HttpConnection conn)
conn - - The HttpConnection to make available.void closeIdleConnections(long idleTimeout)
idleTimeout - the minimum idle time, in milliseconds, for connections to be closedHttpConnectionManagerParams getParams()
parameters associated 
 with this connection manager.
HttpConnectionManagerParamsvoid setParams(HttpConnectionManagerParams params)
parameters for this 
 connection manager.
HttpConnectionManagerParams| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||