@Contract(threading=IMMUTABLE_CONDITIONAL) 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.Modifier and Type | Field and Description |
---|---|
private ProxySelector |
proxySelector |
Constructor and Description |
---|
SystemDefaultRoutePlanner(ProxySelector proxySelector) |
SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
ProxySelector proxySelector) |
Modifier and Type | Method and Description |
---|---|
private Proxy |
chooseProxy(List<Proxy> proxies) |
protected HttpHost |
determineProxy(HttpHost target,
HttpRequest request,
HttpContext context)
This implementation returns null.
|
private String |
getHost(InetSocketAddress isa) |
determineRoute
private final ProxySelector proxySelector
public 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 HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException
DefaultRoutePlanner
determineProxy
in class DefaultRoutePlanner
HttpException
- may be thrown if overriddenprivate String getHost(InetSocketAddress isa)
private Proxy chooseProxy(List<Proxy> proxies)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses