@Contract(threading=IMMUTABLE_CONDITIONAL) 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 org.apache.http.HttpHost |
determineProxy(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
This implementation returns null.
|
HttpRoute |
determineRoute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Determines the route for a request.
|
public DefaultRoutePlanner(SchemePortResolver schemePortResolver)
public HttpRoute determineRoute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.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
.org.apache.http.HttpException
- in case of a problemprotected org.apache.http.HttpHost determineProxy(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException
org.apache.http.HttpException
- may be thrown if overriddenCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.