Class SystemDefaultRoutePlanner
java.lang.Object
org.apache.http.impl.conn.DefaultRoutePlanner
org.apache.http.impl.conn.SystemDefaultRoutePlanner
- All Implemented Interfaces:
HttpRoutePlanner
HttpRoutePlanner implementation
based on ProxySelector. 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
ConstructorsConstructorDescriptionSystemDefaultRoutePlanner(ProxySelector proxySelector) SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, ProxySelector proxySelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpHostdetermineProxy(HttpHost target, HttpRequest request, HttpContext context) Methods inherited from class DefaultRoutePlanner
determineRoute
-
Constructor Details
-
SystemDefaultRoutePlanner
public SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, ProxySelector proxySelector) -
SystemDefaultRoutePlanner
-
-
Method Details
-
determineProxy
protected HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException - Overrides:
determineProxyin classDefaultRoutePlanner- Throws:
HttpException
-