org.apache.commons.httpclient.HttpConnectionManagerpublic class WebdavConnectionManager
extends java.lang.Object
implements org.apache.commons.httpclient.HttpConnectionManager
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.ThreadLocal |
localHttpConnection |
The thread data
|
| Constructor | Description |
|---|---|
WebdavConnectionManager() |
| Modifier and Type | Method | Description |
|---|---|---|
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) |
protected java.lang.ThreadLocal localHttpConnection
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