@Contract(threading=STATELESS) public class SystemDefaultRoutePlanner extends DefaultRoutePlanner
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.| Constructor and Description |
|---|
SystemDefaultRoutePlanner(ProxySelector proxySelector) |
SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
ProxySelector proxySelector) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hc.core5.http.HttpHost |
determineProxy(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.protocol.HttpContext context)
This implementation returns null.
|
determineLocalAddress, determineRoutepublic SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, ProxySelector proxySelector)
proxySelector - the proxy selector, or null for the system defaultpublic SystemDefaultRoutePlanner(ProxySelector proxySelector)
proxySelector - the proxy selector, or null for the system defaultprotected org.apache.hc.core5.http.HttpHost determineProxy(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.protocol.HttpContext context)
throws org.apache.hc.core5.http.HttpException
DefaultRoutePlannerdetermineProxy in class DefaultRoutePlannerorg.apache.hc.core5.http.HttpException - may be thrown if overriddenCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.