|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.httpclient.ThreadLocalHttpConnectionManager
public final class ThreadLocalHttpConnectionManager
A simple, but thread-safe HttpClient HttpConnectionManager.
Based on SimpleHttpConnectionManager.
Java >= 1.4 is recommended.
| Constructor Summary | |
|---|---|
ThreadLocalHttpConnectionManager()
|
|
| 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)
|
org.apache.commons.httpclient.params.HttpConnectionManagerParams |
getParams()
Returns parameters associated
with this connection manager. |
boolean |
isConnectionStaleCheckingEnabled()
Deprecated. Use HttpConnectionParams.isStaleCheckingEnabled(),
HttpConnectionManager.getParams(). |
void |
releaseConnection(org.apache.commons.httpclient.HttpConnection conn)
|
void |
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
Deprecated. Use HttpConnectionParams.setStaleCheckingEnabled(boolean),
HttpConnectionManager.getParams(). |
void |
setParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams p)
Assigns parameters for this
connection manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocalHttpConnectionManager()
| Method Detail |
|---|
public org.apache.commons.httpclient.HttpConnection getConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
getConnection in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManager.getConnection(HostConfiguration)public boolean isConnectionStaleCheckingEnabled()
HttpConnectionParams.isStaleCheckingEnabled(),
HttpConnectionManager.getParams().
true if stale checking will be enabled on HttpConectionsHttpConnection.isStaleCheckingEnabled()public void setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
HttpConnectionParams.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)
getConnectionWithTimeout in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManager.getConnectionWithTimeout(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 org.apache.commons.httpclient.params.HttpConnectionManagerParams getParams()
parameters associated
with this connection manager.
getParams in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManagerParamspublic void setParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams p)
parameters for this
connection manager.
setParams in interface org.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManagerParamspublic void closeIdleConnections(long idleTimeout)
closeIdleConnections in interface org.apache.commons.httpclient.HttpConnectionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||