| org.apache.commons.httpclient.HttpConnectionManager
All known Subclasses: org.apache.commons.httpclient.SimpleHttpConnectionManager, org.apache.commons.httpclient.MultiThreadedHttpConnectionManager, org.apache.commons.httpclient.NoHostHttpConnectionManager,
closeIdleConnections | void closeIdleConnections(long idleTimeout)(Code) | | Closes connections that have been idle for at least the given amount of time. Only
connections that are currently owned, not checked out, are subject to idle timeouts.
Parameters: idleTimeout - the minimum idle time, in milliseconds, for connections to be closed since: 3.0 |
getConnection | HttpConnection getConnection(HostConfiguration hostConfiguration)(Code) | | Gets an HttpConnection for a given host configuration. If a connection is
not available this method will block until one is.
The connection manager should be registered with any HttpConnection that
is created.
Parameters: hostConfiguration - the host configuration to use to configure theconnection an HttpConnection for the given configuration See Also: HttpConnection.setHttpConnectionManager(HttpConnectionManager) |
getConnection | HttpConnection getConnection(HostConfiguration hostConfiguration, long timeout) throws HttpException(Code) | | Gets an HttpConnection for a given host configuration. If a connection is
not available, this method will block for at most the specified number of
milliseconds or until a connection becomes available.
The connection manager should be registered with any HttpConnection that
is created.
Parameters: hostConfiguration - the host configuration to use to configure theconnection Parameters: timeout - - the time (in milliseconds) to wait for a connection tobecome available, 0 to specify an infinite timeout an HttpConnection for the given configuraiton throws: HttpException - if no connection becomes available before thetimeout expires See Also: HttpConnection.setHttpConnectionManager(HttpConnectionManager) |
getConnectionWithTimeout | HttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration, long timeout) throws ConnectionPoolTimeoutException(Code) | | Gets an HttpConnection for a given host configuration. If a connection is
not available, this method will block for at most the specified number of
milliseconds or until a connection becomes available.
The connection manager should be registered with any HttpConnection that
is created.
Parameters: hostConfiguration - the host configuration to use to configure theconnection Parameters: timeout - - the time (in milliseconds) to wait for a connection tobecome available, 0 to specify an infinite timeout an HttpConnection for the given configuraiton throws: ConnectionPoolTimeoutException - if no connection becomes available before thetimeout expires See Also: HttpConnection.setHttpConnectionManager(HttpConnectionManager) since: 3.0 |
releaseConnection | void releaseConnection(HttpConnection conn)(Code) | | Releases the given HttpConnection for use by other requests.
Parameters: conn - - The HttpConnection to make available. |
|
|