|
||||||||||
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.
Constructor Summary | |
SimpleHttpConnectionManager()
Constructor for SimpleHttpConnectionManager. |
Method Summary | |
(package private) static void |
finishLastResponse(HttpConnection conn)
Since the same connection is about to be reused, make sure the previous request was completely processed, and if not consume it now. |
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. |
boolean |
isConnectionStaleCheckingEnabled()
Gets the staleCheckingEnabled value to be set on HttpConnections that are created. |
void |
releaseConnection(HttpConnection conn)
Releases the given HttpConnection for use by other requests. |
void |
setConnectionStaleCheckingEnabled(boolean connectionStaleCheckingEnabled)
Sets the staleCheckingEnabled value to be set on HttpConnections that are created. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public SimpleHttpConnectionManager()
Method Detail |
public HttpConnection getConnection(HostConfiguration hostConfiguration)
HttpConnectionManager
getConnection
in interface HttpConnectionManager
HttpConnectionManager.getConnection(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 HttpConnection getConnection(HostConfiguration hostConfiguration, long timeout)
HttpConnectionManager
getConnection
in interface HttpConnectionManager
HttpConnectionManager.getConnection(HostConfiguration, long)
public void releaseConnection(HttpConnection conn)
HttpConnectionManager
releaseConnection
in interface HttpConnectionManager
HttpConnectionManager.releaseConnection(org.apache.commons.httpclient.HttpConnection)
static void finishLastResponse(HttpConnection conn)
conn
- The connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |