@Contract(threading=STATELESS) public class DefaultRoutePlanner extends Object implements HttpRoutePlanner
HttpRoutePlanner
. It will not make use of
any Java system properties, nor of system or browser proxy settings.Constructor and Description |
---|
DefaultRoutePlanner(SchemePortResolver schemePortResolver) |
Modifier and Type | Method and Description |
---|---|
protected InetAddress |
determineLocalAddress(HttpHost firstHop,
HttpContext context)
This implementation returns null.
|
protected HttpHost |
determineProxy(HttpHost target,
HttpContext context)
This implementation returns null.
|
HttpRoute |
determineRoute(HttpHost host,
HttpContext context)
Determines the route for the given host.
|
public DefaultRoutePlanner(SchemePortResolver schemePortResolver)
protected InetAddress determineLocalAddress(HttpHost firstHop, HttpContext context) throws HttpException
HttpException
- may be thrown if overriddenprotected HttpHost determineProxy(HttpHost target, HttpContext context) throws HttpException
HttpException
- may be thrown if overriddenpublic final HttpRoute determineRoute(HttpHost host, HttpContext context) throws HttpException
HttpRoutePlanner
determineRoute
in interface HttpRoutePlanner
host
- the target host for the request.context
- the context to use for the subsequent execution.
Implementations may accept null
.HttpException
- in case of a problem