serverPort = 2099;
else
serverPort = new Integer(serverPortString).intValue();
// Set up connection manager
PoolingClientConnectionManager localConnectionManager = new PoolingClientConnectionManager();
localConnectionManager.setMaxTotal(1);
// Set up ssl if indicated
keystoreData = params.getParameter(LiveLinkParameters.livelinkKeystore);
if (keystoreData != null)
{
keystoreManager = KeystoreManagerFactory.make("",keystoreData);
SSLSocketFactory myFactory = new SSLSocketFactory(keystoreManager.getSecureSocketFactory(),
new BrowserCompatHostnameVerifier());
Scheme myHttpsProtocol = new Scheme("https", 443, myFactory);
localConnectionManager.getSchemeRegistry().register(myHttpsProtocol);
}
connectionManager = localConnectionManager;
// Create the httpclient
BasicHttpParams params = new BasicHttpParams();