|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.commons.httpclient.ProxyClient.DummyConnectionManager
A connection manager that creates a single connection. Meant to be used only once.
| Constructor Summary | |
(package private) |
ProxyClient.DummyConnectionManager()
|
| Method Summary | |
void |
closeIdleConnections(long idleTimeout)
Closes connections that have been idle for at least the given amount of time. |
HttpConnection |
getConnection()
|
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. |
void |
releaseConnection(HttpConnection conn)
Releases the given HttpConnection for use by other requests. |
void |
setConnectionParams(HttpParams httpParams)
|
void |
setParams(HttpConnectionManagerParams params)
Assigns parameters for this
connection manager. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
ProxyClient.DummyConnectionManager()
| Method Detail |
public void closeIdleConnections(long idleTimeout)
HttpConnectionManagercloseIdleConnections in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManageridleTimeout - the minimum idle time, in milliseconds, for connections to be closedpublic HttpConnection getConnection()
public void setConnectionParams(HttpParams httpParams)
public HttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration,
long timeout)
HttpConnectionManagergetConnectionWithTimeout in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManagerhostConfiguration - the host configuration to use to configure the
connectiontimeout - - the time (in milliseconds) to wait for a connection to
become available, 0 to specify an infinite timeoutConnectionPoolTimeoutException - if no connection becomes available before the
timeout expiresHttpConnection.setHttpConnectionManager(HttpConnectionManager)
public HttpConnection getConnection(HostConfiguration hostConfiguration,
long timeout)
throws HttpException
HttpConnectionManagergetConnection in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManagerhostConfiguration - the host configuration to use to configure the
connectiontimeout - - the time (in milliseconds) to wait for a connection to
become available, 0 to specify an infinite timeoutHttpException - if no connection becomes available before the
timeout expiresHttpConnection.setHttpConnectionManager(HttpConnectionManager)public HttpConnection getConnection(HostConfiguration hostConfiguration)
HttpConnectionManagergetConnection in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManagerhostConfiguration - the host configuration to use to configure the
connectionHttpConnection.setHttpConnectionManager(HttpConnectionManager)public void releaseConnection(HttpConnection conn)
HttpConnectionManagerreleaseConnection in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManagerconn - - The HttpConnection to make available.public HttpConnectionManagerParams getParams()
HttpConnectionManagerparameters associated
with this connection manager.getParams in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManagerParamspublic void setParams(HttpConnectionManagerParams params)
HttpConnectionManagerparameters for this
connection manager.setParams in interface HttpConnectionManagerorg.apache.commons.httpclient.HttpConnectionManagerHttpConnectionManagerParams
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||