Code example for ThreadSafeClientConnManager

0
				HttpParams params) {
			if (conman == null) {
				SchemeRegistry schemeRegistry = new SchemeRegistry();
				schemeRegistry.register(configureScheme());
 
				ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(params, schemeRegistry);
				conman = cm;
			} 
 
			if (cleanupIdleConnections) {
				IdleConnectionMonitor.monitor(conman);
			} 
			return conman;
		} 
 
		private Scheme configureScheme() {
			if (enableSSL) {
                try { 
					AndroidSSLSocketFactory androidSSLSocketFactory = new AndroidSSLSocketFactory((KeyStore)null);
					androidSSLSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
Stop searching for code, let great code find you!  Add Codota to your java IDE