|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.commons.httpclient.SimpleHttpConnectionManager
A connection manager that provides access to a single HttpConnection. This manager makes no attempt to provide exclusive access to the contained HttpConnection.
| Field Summary | |
protected HttpConnection |
httpConnection
The http connection |
| Constructor Summary | |
SimpleHttpConnectionManager()
|
|
| Method Summary | |
void |
closeIdleConnections(long idleTimeout)
Closes connections that have been idle for at least the given amount of time. |
HttpConnection |
getConnection(HostConfiguration hostConfiguration)
Gets an HttpConnection for a given host configuration. |
HttpConnection |
getConnection(HostConfiguration hostConfiguration,
long timeout)
Gets an HttpConnection for a given host configuration. |
HttpConnection |
getConnectionWithTimeout(HostConfiguration hostConfiguration,
long timeout)
Gets an HttpConnection for a given host configuration. |
HttpConnectionManagerParams |
getParams()
Returns parameters associated
with this connection manager. |
boolean |
isConnectionStaleCheckingEnabled()
Deprecated. Use HttpConnectionParams.isStaleCheckingEnabled(),
HttpConnectionManager.getParams(). |
void |
releaseConnection(HttpConnection conn)
Releases the given HttpConnection for use by other requests. |
void |
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
Deprecated. Use HttpConnectionParams.setStaleCheckingEnabled(boolean),
HttpConnectionManager.getParams(). |
void |
setParams(HttpConnectionManagerParams params)
Assigns parameters for this
connection manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HttpConnection httpConnection
| Constructor Detail |
public SimpleHttpConnectionManager()
| Method Detail |
public HttpConnection getConnection(HostConfiguration hostConfiguration)
HttpConnectionManagergetConnection in interface 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 HttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration,
long timeout)
HttpConnectionManagergetConnectionWithTimeout in interface HttpConnectionManagerHttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long)
public HttpConnection getConnection(HostConfiguration hostConfiguration,
long timeout)
HttpConnectionManagergetConnection in interface HttpConnectionManagerHttpConnectionManager.getConnection(HostConfiguration, long)public void releaseConnection(HttpConnection conn)
HttpConnectionManagerreleaseConnection in interface HttpConnectionManagerHttpConnectionManager.releaseConnection(org.apache.commons.httpclient.HttpConnection)public HttpConnectionManagerParams getParams()
parameters associated
with this connection manager.getParams in interface HttpConnectionManagerHttpConnectionManagerParamspublic void setParams(HttpConnectionManagerParams params)
parameters for this
connection manager.setParams in interface HttpConnectionManagerHttpConnectionManagerParamspublic void closeIdleConnections(long idleTimeout)
HttpConnectionManagercloseIdleConnections in interface HttpConnectionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||