@Immutable 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 HttpHost |
determineProxy(HttpHost target,
HttpRequest request,
HttpContext context) |
HttpRoute |
determineRoute(HttpHost host,
HttpRequest request,
HttpContext context)
Determines the route for a request.
|
public DefaultRoutePlanner(SchemePortResolver schemePortResolver)
public HttpRoute determineRoute(HttpHost host, HttpRequest request, HttpContext context) throws HttpException
HttpRoutePlanner
determineRoute
in interface HttpRoutePlanner
host
- 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 problemprotected HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException
HttpException
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.