@ThreadSafe public class DefaultHttpRoutePlanner extends Object implements HttpRoutePlanner
HttpRoutePlanner. This implementation
is based on parameters.
It will not make use of any Java system properties, nor of system or
browser proxy settings.
The following parameters can be used to customize the behavior of this class:
| Modifier and Type | Field and Description |
|---|---|
protected SchemeRegistry |
schemeRegistry
The scheme registry.
|
| Constructor and Description |
|---|
DefaultHttpRoutePlanner(SchemeRegistry schreg)
Creates a new default route planner.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
determineRoute(HttpHost target,
HttpRequest request,
HttpContext context)
Determines the route for a request.
|
protected final SchemeRegistry schemeRegistry
public DefaultHttpRoutePlanner(SchemeRegistry schreg)
schreg - the scheme registrypublic 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 © 1999–2013 The Apache Software Foundation. All rights reserved.