| |
|
| java.lang.Object org.apache.commons.httpclient.SimpleHttpConnectionManager
All known Subclasses: org.apache.commons.httpclient.AccessibleHttpConnectionManager,
SimpleHttpConnectionManager | public class SimpleHttpConnectionManager implements HttpConnectionManager(Code) | | A connection manager that provides access to a single HttpConnection. This
manager makes no attempt to provide exclusive access to the contained
HttpConnection.
author: Michael Becke author: Eric Johnson author: Mike Bowler author: Oleg Kalnichevski author: Laura Werner since: 2.0 |
Constructor Summary | |
public | SimpleHttpConnectionManager(boolean alwaysClose) The connection manager created with this constructor will try to keep the
connection open (alive) between consecutive requests if the alwaysClose
parameter is set to false. | public | SimpleHttpConnectionManager() The connection manager created with this constructor will always try to keep
the connection open (alive) between consecutive requests. |
SimpleHttpConnectionManager | public SimpleHttpConnectionManager(boolean alwaysClose)(Code) | | The connection manager created with this constructor will try to keep the
connection open (alive) between consecutive requests if the alwaysClose
parameter is set to false. Otherwise the connection manager will
always close connections upon release.
Parameters: alwaysClose - if set true, the connection manager will alwaysclose connections upon release. |
SimpleHttpConnectionManager | public SimpleHttpConnectionManager()(Code) | | The connection manager created with this constructor will always try to keep
the connection open (alive) between consecutive requests.
|
closeIdleConnections | public void closeIdleConnections(long idleTimeout)(Code) | | since: 3.0 |
finishLastResponse | static void finishLastResponse(HttpConnection conn)(Code) | | Since the same connection is about to be reused, make sure the
previous request was completely processed, and if not
consume it now.
Parameters: conn - The connection |
getConnectionWithTimeout | public HttpConnection getConnectionWithTimeout(HostConfiguration hostConfiguration, long timeout)(Code) | | This method always returns the same connection object. If the connection is already
open, it will be closed and the new host configuration will be applied.
Parameters: hostConfiguration - The host configuration specifying the connectiondetails. Parameters: timeout - this parameter has no effect. The connection is always returnedimmediately. since: 3.0 |
shutdown | public void shutdown()(Code) | | since 3.1
|
|
|
|