sslcontext.init(null, null, null);
}
SSLSocketFactory sf = new SSLSocketFactory(sslcontext);
Scheme httpScheme = new Scheme("http", PlainSocketFactory.getSocketFactory(), 80);
SSLSocketFactory socketFactory = SSLSocketFactory.getSocketFactory();
socketFactory.setHostnameVerifier(SSLSocketFactory.STRICT_HOSTNAME_VERIFIER);
Scheme httpsScheme = new Scheme("https", sf, 443);
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(httpScheme);
schemeRegistry.register(httpsScheme);