ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor(2, new BasicHttpParams());
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", 80, null));
schemeRegistry.register(new Scheme("https", 443, new SSLLayeringStrategy(this.clientSSLContext)));
this.sessionManager = new PoolingClientConnectionManager(ioReactor, schemeRegistry);
this.httpclient = new DefaultHttpAsyncClient(ioReactor, this.sessionManager);
}