public class ThreadLocalHttpConnectionManager implements HttpConnectionManager(Code)
A connection manager that provides access to a single HttpConnection. This
manager makes no attempt to provide exclusive access to the contained
HttpConnection.
imario@apache.org: Keep connection in ThreadLocal.
author: Mario Ivankovits author: Michael Becke author: Eric Johnson author: Mike Bowler author: Oleg Kalnichevski author: Laura Werner since: 2.0
finishLastResponse(HttpConnection conn) Since the same connection is about to be reused, make sure the
previous request was completely processed, and if not
consume it now.
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled) Sets the staleCheckingEnabled value to be set on HttpConnections that are created.
Since the same connection is about to be reused, make sure the
previous request was completely processed, and if not
consume it now.
Parameters: conn - The connection
getConnection
public HttpConnection getConnection(HostConfiguration hostConfiguration)(Code)
See Also: HttpConnectionManager.getConnection(org.apache.commons.httpclient.HostConfiguration)
getConnection
public HttpConnection getConnection(HostConfiguration hostConfiguration, long timeout)(Code)
See Also: HttpConnectionManager.getConnection(HostConfigurationlong)
getConnectionWithTimeout
public HttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration, long timeout)(Code)
See Also: HttpConnectionManager.getConnection(HostConfigurationlong) since: 3.0
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.isStaleCheckingEnabled
releaseConnection
public void releaseConnection(HttpConnection conn)(Code)
See Also: HttpConnectionManager.releaseConnection(org.apache.commons.httpclient.HttpConnection)
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 enabledon HttpConections See Also: HttpConnection.setStaleCheckingEnabled(boolean)