Class WebdavConnectionManager
java.lang.Object
org.apache.commons.vfs.provider.webdav.WebdavConnectionManager
- All Implemented Interfaces:
org.apache.commons.httpclient.HttpConnectionManager
public class WebdavConnectionManager
extends Object
implements org.apache.commons.httpclient.HttpConnectionManager
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.
- Since:
- 2.0
- Author:
- Mario Ivankovits, Michael Becke, Eric Johnson, Mike Bowler, Oleg Kalnichevski, Laura Werner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseIdleConnections(long idleTimeout) org.apache.commons.httpclient.HttpConnectiongetConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration) org.apache.commons.httpclient.HttpConnectiongetConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration, long timeout) Deprecated.Use #getConnectionWithTimeout(HostConfiguration, long)org.apache.commons.httpclient.HttpConnectiongetConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration hostConfiguration, long timeout) protected longprotected org.apache.commons.httpclient.HttpConnectionorg.apache.commons.httpclient.params.HttpConnectionManagerParamsbooleanGets the staleCheckingEnabled value to be set on HttpConnections that are created.voidreleaseConnection(org.apache.commons.httpclient.HttpConnection conn) voidrelease the connection of the current threadvoidsetConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled) Sets the staleCheckingEnabled value to be set on HttpConnections that are created.protected voidsetIdleStartTime(long idleStartTime) protected voidsetLocalHttpConnection(org.apache.commons.httpclient.HttpConnection conn) voidsetParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams params)
-
Field Details
-
localHttpConnection
The thread data
-
-
Constructor Details
-
WebdavConnectionManager
public WebdavConnectionManager()
-
-
Method Details
-
releaseLocalConnection
public void releaseLocalConnection()release the connection of the current thread -
getLocalHttpConnection
protected org.apache.commons.httpclient.HttpConnection getLocalHttpConnection() -
setLocalHttpConnection
protected void setLocalHttpConnection(org.apache.commons.httpclient.HttpConnection conn) -
getIdleStartTime
protected long getIdleStartTime() -
setIdleStartTime
protected void setIdleStartTime(long idleStartTime) -
getConnection
public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration) - Specified by:
getConnectionin interfaceorg.apache.commons.httpclient.HttpConnectionManager- See Also:
-
isConnectionStaleCheckingEnabled
public boolean isConnectionStaleCheckingEnabled()Gets the staleCheckingEnabled value to be set on HttpConnections that are created.- Returns:
trueif stale checking will be enabled on HttpConections- See Also:
-
setConnectionStaleCheckingEnabled
public void setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled) Sets the staleCheckingEnabled value to be set on HttpConnections that are created.- Parameters:
connectionStaleCheckingEnabled-trueif stale checking will be enabled on HttpConections- See Also:
-
getConnectionWithTimeout
public org.apache.commons.httpclient.HttpConnection getConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration hostConfiguration, long timeout) - Specified by:
getConnectionWithTimeoutin interfaceorg.apache.commons.httpclient.HttpConnectionManager- Since:
- 3.0
- See Also:
-
getConnection
public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration, long timeout) Deprecated.Use #getConnectionWithTimeout(HostConfiguration, long)- Specified by:
getConnectionin interfaceorg.apache.commons.httpclient.HttpConnectionManager- See Also:
-
releaseConnection
public void releaseConnection(org.apache.commons.httpclient.HttpConnection conn) - Specified by:
releaseConnectionin interfaceorg.apache.commons.httpclient.HttpConnectionManager- See Also:
-
closeIdleConnections
public void closeIdleConnections(long idleTimeout) - Specified by:
closeIdleConnectionsin interfaceorg.apache.commons.httpclient.HttpConnectionManager- Since:
- 3.0
-
setParams
public void setParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams params) - Specified by:
setParamsin interfaceorg.apache.commons.httpclient.HttpConnectionManager
-
getParams
public org.apache.commons.httpclient.params.HttpConnectionManagerParams getParams()- Specified by:
getParamsin interfaceorg.apache.commons.httpclient.HttpConnectionManager
-