|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.internal.http.HttpClientPool
public class HttpClientPool
Class HttpClientPool implements a pool for http client connections
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. |
String[] |
getUpdatedCipherSuites(String[] pCurrentCipherSuites,
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpClientPool(WBEMConfiguration pConfiguration)
pConfiguration
- The configuration for this session. Must be non-null.Method Detail |
---|
public int getNumberOfAllConnections()
public int getNumberOfAvailableConnections()
public WBEMConfiguration getConfigurationContext()
public SSLContext getSslContext()
public HttpClient retrieveAvailableConnectionFromPool(URI pUri, AuthorizationHandler pHandler)
pUri
- The uripHandler
- The authorization handler
null
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 pool
public boolean addConnectionToPool(HttpClient httpClient)
returnAvailableConnectionToPool(HttpClient)
to also add the
connection to the available connections.
httpClient
- connection that is to be added to the pool
public boolean removeConnectionFromPool(HttpClient httpClient)
httpClient
- connection that is to be removed from the pool
public void closePool()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public int getPoolSize()
public String[] getUpdatedCipherSuites(String[] pCurrentCipherSuites, String pDisableCipherSuites)
pCurrentCipherSuites
- The currently enabled cipher suitespDisableCipherSuites
- The list of cipher suites to be disabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |