|
||||||||||
| 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 |
javax.net.ssl.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(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. |
| 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 javax.net.ssl.SSLContext getSslContext()
public HttpClient retrieveAvailableConnectionFromPool(java.net.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()
finalize in class java.lang.Objectpublic int getPoolSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||