@Contract(threading=STATELESS) public class BasicRouteDirector extends Object implements HttpRouteDirector
HttpRouteDirector
implementation.COMPLETE, CONNECT_PROXY, CONNECT_TARGET, LAYER_PROTOCOL, TUNNEL_PROXY, TUNNEL_TARGET, UNREACHABLE
Constructor and Description |
---|
BasicRouteDirector() |
Modifier and Type | Method and Description |
---|---|
protected int |
directStep(RouteInfo plan,
RouteInfo fact)
Determines the next step to establish a direct connection.
|
protected int |
firstStep(RouteInfo plan)
Determines the first step to establish a route.
|
int |
nextStep(RouteInfo plan,
RouteInfo fact)
Provides the next step.
|
protected int |
proxiedStep(RouteInfo plan,
RouteInfo fact)
Determines the next step to establish a connection via proxy.
|
protected int directStep(RouteInfo plan, RouteInfo fact)
plan
- the planned routefact
- the currently established routeprotected int firstStep(RouteInfo plan)
plan
- the planned routepublic int nextStep(RouteInfo plan, RouteInfo fact)
nextStep
in interface HttpRouteDirector
plan
- the planned routefact
- the currently established route, or
null
if nothing is establishedprotected int proxiedStep(RouteInfo plan, RouteInfo fact)
plan
- the planned routefact
- the currently established route