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 {@link HttpConnectionManagerParams 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 {@link HttpConnectionManagerParams parameters} for this
connection manager.
|
Since: 3.0
See Also: getConnection
Since: 2.1
See Also: HttpConnectionManagerParams
Deprecated: Use {@link HttpConnectionManagerParams#isStaleCheckingEnabled()}, {@link HttpConnectionManager#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 {@link HttpConnectionManagerParams#setStaleCheckingEnabled(boolean)}, {@link HttpConnectionManager#getParams()}.
Sets the staleCheckingEnabled value to be set on HttpConnections that are created.Parameters: connectionStaleCheckingEnabled true if stale checking will be enabled
on HttpConections
Since: 2.1
See Also: HttpConnectionManagerParams