|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for classes that manage HttpConnections.
HttpConnection
,
HttpClient.HttpClient(HttpConnectionManager)
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. |
void |
releaseConnection(HttpConnection conn)
Releases the given HttpConnection for use by other requests. |
Method Detail |
public HttpConnection getConnection(HostConfiguration hostConfiguration)
hostConfiguration
- the host configuration to use to configure the
connection
HttpConnection.setHttpConnectionManager(HttpConnectionManager)
public HttpConnection getConnection(HostConfiguration hostConfiguration, long timeout) throws HttpException
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
HttpException
- if no connection becomes available before the
timeout expiresHttpConnection.setHttpConnectionManager(HttpConnectionManager)
public void releaseConnection(HttpConnection conn)
conn
- - The HttpConnection to make available.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |