Package org.apache.http.impl.conn
Class SystemDefaultRoutePlanner
- java.lang.Object
-
- org.apache.http.impl.conn.DefaultRoutePlanner
-
- org.apache.http.impl.conn.SystemDefaultRoutePlanner
-
- All Implemented Interfaces:
HttpRoutePlanner
@Immutable public class SystemDefaultRoutePlanner extends DefaultRoutePlanner
HttpRoutePlannerimplementation based onProxySelector. By default, this class will pick up the proxy settings of the JVM, either from system properties or from the browser running the application.- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description SystemDefaultRoutePlanner(java.net.ProxySelector proxySelector)SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, java.net.ProxySelector proxySelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpHostdetermineProxy(HttpHost target, HttpRequest request, HttpContext context)-
Methods inherited from class org.apache.http.impl.conn.DefaultRoutePlanner
determineRoute
-
-
-
-
Constructor Detail
-
SystemDefaultRoutePlanner
public SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, java.net.ProxySelector proxySelector)
-
SystemDefaultRoutePlanner
public SystemDefaultRoutePlanner(java.net.ProxySelector proxySelector)
-
-
Method Detail
-
determineProxy
protected HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException
- Overrides:
determineProxyin classDefaultRoutePlanner- Throws:
HttpException
-
-