SystemDefaultRoutePlanner@Deprecated public class ProxySelectorRoutePlanner extends Object implements HttpRoutePlanner
HttpRoutePlanner.
This implementation is based on ProxySelector.
By default, it will pick up the proxy settings of the JVM, either
from system properties or from the browser running the application.
Additionally, it interprets some
parameters,
though not the DEFAULT_PROXY.
The following parameters can be used to customize the behavior of this class:
| Constructor and Description |
|---|
ProxySelectorRoutePlanner(SchemeRegistry schreg,
ProxySelector prosel)
Deprecated.
Creates a new proxy selector route planner.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
determineRoute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
Determines the route for a request.
|
ProxySelector |
getProxySelector()
Deprecated.
Obtains the proxy selector to use.
|
void |
setProxySelector(ProxySelector prosel)
Deprecated.
Sets the proxy selector to use.
|
public ProxySelectorRoutePlanner(SchemeRegistry schreg, ProxySelector prosel)
schreg - the scheme registryprosel - the proxy selector, or
null for the system defaultpublic ProxySelector getProxySelector()
null for the system defaultpublic void setProxySelector(ProxySelector prosel)
prosel - the proxy selector, or
null to use the system defaultpublic HttpRoute determineRoute(HttpHost target, HttpRequest request, HttpContext context) throws HttpException
HttpRoutePlannerdetermineRoute in interface HttpRoutePlannertarget - the target host for the request.
Implementations may accept null
if they can still determine a route, for example
to a default target or by inspecting the request.request - the request to executecontext - the context to use for the subsequent execution.
Implementations may accept null.HttpException - in case of a problemCopyright © 2010 - 2020 Adobe. All Rights Reserved