@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(java.net.ProxySelector proxySelector) |
SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
java.net.ProxySelector proxySelector) |
Modifier and Type | Method and Description |
---|---|
protected HttpHost |
determineProxy(HttpHost target,
HttpContext context)
This implementation returns null.
|
determineLocalAddress, determineRoute
public SystemDefaultRoutePlanner(java.net.ProxySelector proxySelector)
proxySelector
- the proxy selector, or null
for the system defaultpublic SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, java.net.ProxySelector proxySelector)
proxySelector
- the proxy selector, or null
for the system defaultprotected HttpHost determineProxy(HttpHost target, HttpContext context) throws HttpException
DefaultRoutePlanner
determineProxy
in class DefaultRoutePlanner
HttpException
- may be thrown if overridden