org.apache.http.impl.conn
Class SystemDefaultRoutePlanner

java.lang.Object
  extended by org.apache.http.impl.conn.DefaultRoutePlanner
      extended by org.apache.http.impl.conn.SystemDefaultRoutePlanner
All Implemented Interfaces:
HttpRoutePlanner

@Immutable
public class SystemDefaultRoutePlanner
extends DefaultRoutePlanner

HttpRoutePlanner implementation based on ProxySelector. By default, it will pick up the proxy settings of the JVM, either from system properties or from the browser running the application. Additionally, it interprets some parameters, though not the DEFAULT_PROXY.

Since:
4.3

Constructor Summary
SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, ProxySelector proxySelector)
           
 
Method Summary
protected  HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context)
           
 
Methods inherited from class org.apache.http.impl.conn.DefaultRoutePlanner
determineRoute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemDefaultRoutePlanner

public SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
                                 ProxySelector proxySelector)
Method Detail

determineProxy

protected HttpHost determineProxy(HttpHost target,
                                  HttpRequest request,
                                  HttpContext context)
                           throws HttpException
Overrides:
determineProxy in class DefaultRoutePlanner
Throws:
HttpException


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.