|
||||||||||
| 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
public class 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 java.lang.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()
|
org.apache.commons.httpclient.params.HttpConnectionManagerParams |
getParams()
|
boolean |
isConnectionStaleCheckingEnabled()
Gets the staleCheckingEnabled value to be set on HttpConnections that are created. |
void |
releaseConnection(org.apache.commons.httpclient.HttpConnection conn)
|
void |
releaseLocalConnection()
release the connection of the current thread |
void |
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
Sets the staleCheckingEnabled value to be set on HttpConnections that are created. |
protected void |
setIdleStartTime(long idleStartTime)
|
protected void |
setLocalHttpConnection(org.apache.commons.httpclient.HttpConnection conn)
|
void |
setParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams params)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.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()
true if stale checking will be enabled on HttpConectionsHttpConnection.isStaleCheckingEnabled()public void setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
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)
getConnectionWithTimeout in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManager.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)
closeIdleConnections in interface org.apache.commons.httpclient.HttpConnectionManagerpublic void setParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams params)
setParams in interface org.apache.commons.httpclient.HttpConnectionManagerpublic org.apache.commons.httpclient.params.HttpConnectionManagerParams getParams()
getParams in interface org.apache.commons.httpclient.HttpConnectionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||