Top Description Fields Constructors Methods
org.apache.http.impl.conn

public Class DefaultHttpRoutePlanner

extends Object
implements HttpRoutePlanner
Class Inheritance
All Implemented Interfaces
org.apache.http.conn.routing.HttpRoutePlanner
Annotations
@Contract
threading:SAFE
@Deprecated
Imports
java.net.InetAddress, org.apache.http.HttpException, .HttpHost, .HttpRequest, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.conn.params.ConnRouteParams, org.apache.http.conn.routing.HttpRoute, .HttpRoutePlanner, org.apache.http.conn.scheme.Scheme, .SchemeRegistry, org.apache.http.protocol.HttpContext, org.apache.http.util.Args, .Asserts

Deprecated

(4.3) use DefaultRoutePlanner

Default implementation of an 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:

Since
4.0

Field Summary

Modifier and TypeField and Description
protected final SchemeRegistry
schemeRegistry

The scheme registry.

Constructor Summary

AccessConstructor and Description
public
DefaultHttpRoutePlanner(final SchemeRegistry
the scheme registry
schreg
)

Deprecated as a consequence of SchemeRegistry being deprecated.
Creates a new default route planner.

Method Summary

Modifier and TypeMethod and Description
public HttpRoute
determineRoute(final HttpHost
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.
target
,
final HttpRequest
the request to execute
request
,
final HttpContext
the context to use for the subsequent execution. Implementations may accept null.
context
)

Implements org.apache.http.conn.routing.HttpRoutePlanner.determineRoute.

Determines the route for a request.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

schemeRegistryback to summary
protected final SchemeRegistry schemeRegistry

Deprecated

as a consequence of SchemeRegistry being deprecated. See corresponding docs for further information.

The scheme registry.

Constructor Detail

DefaultHttpRoutePlannerback to summary
public DefaultHttpRoutePlanner(final SchemeRegistry schreg)

Deprecated

as a consequence of SchemeRegistry being deprecated. See corresponding docs for further information.

Creates a new default route planner.

Parameters
schreg:SchemeRegistry

the scheme registry

Method Detail

determineRouteback to summary
public HttpRoute determineRoute(final HttpHost target, final HttpRequest request, final HttpContext context) throws HttpException

Implements org.apache.http.conn.routing.HttpRoutePlanner.determineRoute.

Doc from org.apache.http.conn.routing.HttpRoutePlanner.determineRoute.

Determines the route for a request.

Parameters
target:HttpHost

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:HttpRequest

the request to execute

context:HttpContext

the context to use for the subsequent execution. Implementations may accept null.

Returns:HttpRoute

the route that the request should take

Annotations
@Override
Exceptions
HttpException:
in case of a problem