org.apache.commons.httpclient
public class SimpleHttpConnectionManager extends Object implements HttpConnectionManager
Since: 2.0
Field Summary | |
---|---|
protected HttpConnection | httpConnection The http connection |
Constructor Summary | |
---|---|
SimpleHttpConnectionManager() |
Method Summary | |
---|---|
void | closeIdleConnections(long idleTimeout) |
HttpConnection | getConnection(HostConfiguration hostConfiguration) |
HttpConnection | getConnection(HostConfiguration hostConfiguration, long timeout) |
HttpConnection | getConnectionWithTimeout(HostConfiguration hostConfiguration, long timeout) |
HttpConnectionManagerParams | getParams()
Returns parameters associated
with this connection manager.
|
boolean | isConnectionStaleCheckingEnabled()
Gets the staleCheckingEnabled value to be set on HttpConnections that are created.
|
void | releaseConnection(HttpConnection conn) |
void | setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
Sets the staleCheckingEnabled value to be set on HttpConnections that are created.
|
void | setParams(HttpConnectionManagerParams params)
Assigns parameters for this
connection manager.
|
Since: 3.0
See Also: getConnection
parameters
associated
with this connection manager.
Since: 2.1
See Also: HttpConnectionManagerParams
Deprecated: Use HttpConnectionManagerParams, getParams.
Gets the staleCheckingEnabled value to be set on HttpConnections that are created.Returns: true
if stale checking will be enabled on HttpConections
See Also: releaseConnection
Deprecated: Use HttpConnectionManagerParams, getParams.
Sets the staleCheckingEnabled value to be set on HttpConnections that are created.Parameters: connectionStaleCheckingEnabled true
if stale checking will be enabled
on HttpConections