DefaultRoutePlanner
@Contract(threading=SAFE) @Deprecated 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
Deprecated.
The scheme registry.
|
Constructor and Description |
---|
DefaultHttpRoutePlanner(SchemeRegistry schreg)
Deprecated.
Creates a new default route planner.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
Determines the route for a request.
|
protected final SchemeRegistry schemeRegistry
public DefaultHttpRoutePlanner(SchemeRegistry schreg)
schreg
- the scheme registrypublic HttpRoute determineRoute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException
HttpRoutePlanner
determineRoute
in interface HttpRoutePlanner
target
- 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 problemCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.