I'm trying to re-do the existing httpclient web-service consumer calls to google http client and I ran into an issues. Does the google http client supports HTTP over TLS. if yes, can you provide a sample snippet that allows me to do the same in a simple way. Basically, what I'm looking is to convert the below code to utilize google api. Any suggestions?
httpclient = new DefaultHttpClient(params);
SSLContext sslcontext = SSLContext.getInstance("TLS");
// sslcontext.init(null, new TrustManager[] {easyTrustManager}, null);
SSLSocketFactory sf = new SSLSocketFactory(sslcontext);
sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
Scheme sch = new Scheme("https", sf, PORT); // PORT = 443
httpclient.getConnectionManager().getSchemeRegistry().register(sch);