HttpClientSupport.setProxySelector(proxySelector);
HttpClientSupport.getHttpClient().setCredentialsProvider(getProxyCredentials(settings));
}
public static ProxySelector filterHttpHttpsProxy(ProxySelector proxySelector) {
return new ProxyBypassListSelector(
Arrays.<UriFilter>asList(new SchemeProxyFilter("http", "https")),
proxySelector);
}