org.sblim.cimclient.internal.http
public class HttpClientPool extends Object
Constructor Summary | |
---|---|
HttpClientPool(WBEMConfiguration pConfiguration)
Ctor.
|
Method Summary | |
---|---|
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 completly 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. |
Parameters: pConfiguration The configuration for this session. Must be non-null.
Parameters: httpClient connection that is to be added to the pool
Returns: true if connection was added otherwise false
Returns: The configuration
Returns: number of available/free connections in pool
Returns: number of all connections in pool
Returns: The value of poolSize.
Returns: The SSL context
Parameters: httpClient connection that is to be removed from the pool
Returns: true if connection was removed otherwise false
Parameters: pUri The uri pHandler The authoriaztion handler
Returns: A connection if one is available, null
otherwise
Parameters: httpClient connection that is to be added to the pool
Returns: true if connection was added otherwise false