@Override protected HttpRoutePlanner createHttpRoutePlanner() { // BEGIN android-changed // Use the proxy specified by system properties return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null); // END android-changed }
@Override protected HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException { HttpHost httpHost = super.determineProxy(target, request, context); if (scheme != null && !scheme.equalsIgnoreCase(httpHost.getSchemeName())) { httpHost = new HttpHost(httpHost.getHostName(), httpHost.getPort(), scheme); } return httpHost; } }
Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());
@Override protected HttpRoutePlanner createHttpRoutePlanner() { // BEGIN android-changed // Use the proxy specified by system properties return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null); // END android-changed }
final Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());
proxy = determineProxy(target, request, context); } else if (ConnRouteParams.NO_HOST.equals(proxy)) {
@Override protected HttpRoutePlanner createHttpRoutePlanner() { // BEGIN android-changed // Use the proxy specified by system properties return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null); // END android-changed }
Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());
@Override protected HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException { HttpHost httpHost = super.determineProxy(target, request, context); if (scheme != null && !scheme.equalsIgnoreCase(httpHost.getSchemeName())) { httpHost = new HttpHost(httpHost.getHostName(), httpHost.getPort(), scheme); } return httpHost; } }
@Override protected HttpRoutePlanner createHttpRoutePlanner() { // BEGIN android-changed // Use the proxy specified by system properties return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null); // END android-changed }
Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());
proxy = determineProxy(target, request, context); } else if (ConnRouteParams.NO_HOST.equals(proxy)) {
@Override protected HttpRoutePlanner createHttpRoutePlanner() { // BEGIN android-changed // Use the proxy specified by system properties return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null); // END android-changed }
final Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());
proxy = determineProxy(target, request, context); } else if (ConnRouteParams.NO_HOST.equals(proxy)) {
@Provides @Singleton HttpClient newDefaultHttpClient(ProxyConfig config, BasicHttpParams params, ClientConnectionManager cm) { DefaultHttpClient client = new DefaultHttpClient(cm, params); if (config.useSystem()) { ProxySelectorRoutePlanner routePlanner = new ProxySelectorRoutePlanner(client.getConnectionManager() .getSchemeRegistry(), ProxySelector.getDefault()); client.setRoutePlanner(routePlanner); } return client; }
final Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());
proxy = determineProxy(target, request, context); } else if (ConnRouteParams.NO_HOST.equals(proxy)) {
@Provides @Singleton final HttpClient newDefaultHttpClient(ProxyConfig config, BasicHttpParams params, ClientConnectionManager cm) { DefaultHttpClient client = new DefaultHttpClient(cm, params); if (config.useSystem()) { ProxySelectorRoutePlanner routePlanner = new ProxySelectorRoutePlanner(client.getConnectionManager() .getSchemeRegistry(), ProxySelector.getDefault()); client.setRoutePlanner(routePlanner); } return client; }
final Proxy p = chooseProxy(proxies, target, request, context); result = new HttpHost(getHost(isa), isa.getPort());