org.sblim.cimclient.internal.http
public class HttpClientPool extends Object
Constructor and Description |
---|
HttpClientPool(WBEMConfiguration pConfiguration)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addConnectionToPool(HttpClient httpClient)
Add the connection to the pool, but does NOT add it as available
connection.
|
void |
closePool()
Closes the pool.
|
protected void |
finalize() |
WBEMConfiguration |
getConfigurationContext()
Returns the configuration context of this pool
|
int |
getNumberOfAllConnections()
Returns the number of connections in this pool that are available/free
for (re-)use.
|
int |
getNumberOfAvailableConnections()
Returns the number of all connections in this pool.
|
int |
getPoolSize()
Returns poolSize
|
SSLContext |
getSslContext()
Returns the SSL context for the clients in this pool.
|
boolean |
removeConnectionFromPool(HttpClient httpClient)
Removes a connection completely from the pool.
|
HttpClient |
retrieveAvailableConnectionFromPool(URI pUri,
AuthorizationHandler pHandler)
Returns the available connections of this pool for a given
URI&AuthorizationHandler
|
boolean |
returnAvailableConnectionToPool(HttpClient httpClient)
Add the connection to the pool.
|
public HttpClientPool(WBEMConfiguration pConfiguration)
pConfiguration
- The configuration for this session. Must be non-null.public int getNumberOfAllConnections()
public int getNumberOfAvailableConnections()
public WBEMConfiguration getConfigurationContext()
public SSLContext getSslContext()
public HttpClient retrieveAvailableConnectionFromPool(URI pUri, AuthorizationHandler pHandler)
pUri
- The uripHandler
- The authorization handlernull
otherwisepublic boolean returnAvailableConnectionToPool(HttpClient httpClient)
addConnectionToPool(HttpClient)
to add
the connection without being available for reuse.httpClient
- connection that is to be added to the poolpublic boolean addConnectionToPool(HttpClient httpClient)
returnAvailableConnectionToPool(HttpClient)
to also add the
connection to the available connections.httpClient
- connection that is to be added to the poolpublic boolean removeConnectionFromPool(HttpClient httpClient)
httpClient
- connection that is to be removed from the poolpublic void closePool()
public int getPoolSize()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.