final public class ThreadLocalHttpConnectionManager implements HttpConnectionManager(Code)
A simple, but thread-safe HttpClient
HttpConnectionManager .
Based on
org.apache.commons.httpclient.SimpleHttpConnectionManager .
Java >= 1.4 is recommended. author: Christian Kohlschuetter
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled) Sets the staleCheckingEnabled value to be set on HttpConnections that are created.
public void
setParams(HttpConnectionManagerParams p) Assigns
HttpConnectionManagerParams parameters for this
connection manager.
See Also: HttpConnectionManager.getConnection(HostConfiguration)
getConnection
publicHttpConnection getConnection(HostConfiguration hostConfiguration, long timeout)(Code)
See Also: HttpConnectionManager.getConnection(HostConfigurationlong)
getConnectionWithTimeout
publicHttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration, long timeout)(Code)
See Also: HttpConnectionManager.getConnectionWithTimeout(HostConfigurationlong) since: 3.0
getParams
public HttpConnectionManagerParams getParams()(Code)
Returns
HttpConnectionManagerParams parameters associated
with this connection manager.
since: 2.1 See Also: HttpConnectionManagerParams
isConnectionStaleCheckingEnabled
public boolean isConnectionStaleCheckingEnabled()(Code)
Gets the staleCheckingEnabled value to be set on HttpConnections that are created.
true if stale checking will be enabled on HttpConections See Also:HttpConnection.isStaleCheckingEnabledHttpConnectionManagerParams.isStaleCheckingEnabledHttpConnectionManager.getParams
See Also: HttpConnectionManager.releaseConnection(org.apache.commons.httpclient.HttpConnection)
setConnectionStaleCheckingEnabled
public void setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)(Code)
Sets the staleCheckingEnabled value to be set on HttpConnections that are created.
Parameters: connectionStaleCheckingEnabled - true if stale checking will be enabled on HttpConections See Also:HttpConnection.setStaleCheckingEnabled(boolean)HttpConnectionManagerParams.setStaleCheckingEnabled(boolean)HttpConnectionManager.getParams
setParams
public void setParams(HttpConnectionManagerParams p)(Code)
Assigns
HttpConnectionManagerParams parameters for this
connection manager.
since: 2.1 See Also: HttpConnectionManagerParams