public class HttpClientPool
extends java.lang.Object
Constructor | Description |
---|---|
HttpClientPool(WBEMConfiguration pConfiguration) |
Ctor.
|
Modifier and Type | Method | 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
|
javax.net.ssl.SSLContext |
getSslContext() |
Returns the SSL context for the clients in this pool.
|
java.lang.String[] |
getUpdatedCipherSuites(java.lang.String[] pCurrentCipherSuites,
java.lang.String pDisableCipherSuites) |
Returns updated array of cipher suites which is current cipher suites
less any cipher suites listed to be disabled
NOTE: The updated array is generated only upon first invocation and then
saved, effectively making this a lazy initialization of the cipher suites
on a HttpClientPool basis - it has to be done here and not in WBEMClient
where it belongs because socket characteristics are not known to
WBEMClient
|
boolean |
removeConnectionFromPool(HttpClient httpClient) |
Removes a connection completely from the pool.
|
HttpClient |
retrieveAvailableConnectionFromPool(java.net.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 javax.net.ssl.SSLContext getSslContext()
public HttpClient retrieveAvailableConnectionFromPool(java.net.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()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public int getPoolSize()
public java.lang.String[] getUpdatedCipherSuites(java.lang.String[] pCurrentCipherSuites, java.lang.String pDisableCipherSuites)
pCurrentCipherSuites
- The currently enabled cipher suitespDisableCipherSuites
- The list of cipher suites to be disabledCopyright © 2005, 2013 IBM Corporation. All Rights Reserved.