|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleHttpConnectionManager()
Method Detail |
public HttpConnection getConnection(HostConfiguration hostConfiguration)
HttpConnectionManager
getConnection
in interface HttpConnectionManager
hostConfiguration
- the host configuration to use to configure the
connection
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
hostConfiguration
- 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 timeout
HttpConnectionManager.getConnection(HostConfiguration, long)
public void releaseConnection(HttpConnection conn)
HttpConnectionManager
releaseConnection
in interface HttpConnectionManager
conn
- - The HttpConnection to make available.HttpConnectionManager.releaseConnection(org.apache.commons.httpclient.HttpConnection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |