public class DefaultRoutePlanner extends java.lang.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 java.net.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)
public final HttpRoute determineRoute(HttpHost host, HttpContext context) throws HttpException
HttpRoutePlannerdetermineRoute in interface HttpRoutePlannerhost - the target host for the request.context - the context to use for the subsequent execution.
Implementations may accept null.HttpException - in case of a problemprotected HttpHost determineProxy(HttpHost target,
HttpContext context)
throws HttpException
HttpException - may be thrown if overriddenprotected java.net.InetAddress determineLocalAddress(HttpHost firstHop,
HttpContext context)
throws HttpException
HttpException - may be thrown if overridden