public class PoolingHttpClientConnection extends Connection
| Modifier and Type | Method and Description |
|---|---|
protected void |
initHttpClient(MerchantConfig merchantConfig,
org.apache.http.impl.conn.PoolingHttpClientConnectionManager poolingHttpClientConnManager) |
boolean |
isRequestSent()
To check whether request sent or not
|
void |
logRequestHeaders() |
void |
logResponseHeaders() |
static void |
onShutdown()
To close the httpClient, connectionManager, staleMonitorThread
when application got shutdown
|
void |
release()
To close httpResponse
|
getInstance, postprotected void initHttpClient(MerchantConfig merchantConfig, org.apache.http.impl.conn.PoolingHttpClientConnectionManager poolingHttpClientConnManager)
merchantConfig - poolingHttpClientConnManager - public boolean isRequestSent()
isRequestSent in class Connectionpublic static void onShutdown()
throws IOException
IOExceptionpublic void release()
throws ClientException
release in class ConnectionClientExceptionpublic void logRequestHeaders()
logRequestHeaders in class Connectionpublic void logResponseHeaders()
logResponseHeaders in class ConnectionCopyright © 2022. All rights reserved.