|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.vfs.provider.webdav.WebdavConnectionManager
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.
| Field Summary | |
protected ThreadLocal |
localHttpConnection
The thread data |
| Constructor Summary | |
WebdavConnectionManager()
|
|
| Method Summary | |
void |
closeIdleConnections(long idleTimeout)
|
org.apache.commons.httpclient.HttpConnection |
getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
|
org.apache.commons.httpclient.HttpConnection |
getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
long timeout)
Deprecated. Use #getConnectionWithTimeout(HostConfiguration, long) |
org.apache.commons.httpclient.HttpConnection |
getConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
long timeout)
|
protected long |
getIdleStartTime()
|
protected org.apache.commons.httpclient.HttpConnection |
getLocalHttpConnection()
|
boolean |
isConnectionStaleCheckingEnabled()
Deprecated. Use HttpConnectionManagerParams#isStaleCheckingEnabled(),
HttpConnectionManager#getParams(). |
void |
releaseConnection(org.apache.commons.httpclient.HttpConnection conn)
|
void |
releaseLocalConnection()
release the connection of the current thread |
void |
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
Deprecated. Use HttpConnectionManagerParams#setStaleCheckingEnabled(boolean),
HttpConnectionManager#getParams(). |
protected void |
setIdleStartTime(long idleStartTime)
|
protected void |
setLocalHttpConnection(org.apache.commons.httpclient.HttpConnection conn)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ThreadLocal localHttpConnection
| Constructor Detail |
public WebdavConnectionManager()
| Method Detail |
public void releaseLocalConnection()
protected org.apache.commons.httpclient.HttpConnection getLocalHttpConnection()
protected void setLocalHttpConnection(org.apache.commons.httpclient.HttpConnection conn)
protected long getIdleStartTime()
protected void setIdleStartTime(long idleStartTime)
public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
getConnection in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManager.getConnection(org.apache.commons.httpclient.HostConfiguration)public boolean isConnectionStaleCheckingEnabled()
HttpConnectionManagerParams#isStaleCheckingEnabled(),
HttpConnectionManager#getParams().
true if stale checking will be enabled on HttpConectionsHttpConnection.isStaleCheckingEnabled()public void setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
HttpConnectionManagerParams#setStaleCheckingEnabled(boolean),
HttpConnectionManager#getParams().
connectionStaleCheckingEnabled - true if stale checking will be enabled
on HttpConectionsHttpConnection.setStaleCheckingEnabled(boolean)
public org.apache.commons.httpclient.HttpConnection getConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
long timeout)
HttpConnectionManager.getConnection(HostConfiguration, long)
public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
long timeout)
getConnection in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManager.getConnection(HostConfiguration, long)public void releaseConnection(org.apache.commons.httpclient.HttpConnection conn)
releaseConnection in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManager.releaseConnection(org.apache.commons.httpclient.HttpConnection)public void closeIdleConnections(long idleTimeout)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||