{
getSessionParameters();
if (hasConnected == false)
{
// Set up connection manager
PoolingClientConnectionManager localConnectionManager = new PoolingClientConnectionManager();
localConnectionManager.setMaxTotal(1);
// Set up ingest ssl if indicated
if (ingestKeystoreManager != null)
{
SSLSocketFactory myFactory = new SSLSocketFactory(ingestKeystoreManager.getSecureSocketFactory(),
new BrowserCompatHostnameVerifier());
Scheme myHttpsProtocol = new Scheme("https", 443, myFactory);
localConnectionManager.getSchemeRegistry().register(myHttpsProtocol);
}
connectionManager = localConnectionManager;
// Create the httpclient
BasicHttpParams params = new BasicHttpParams();