@Immutable public class BasicRouteDirector extends Object implements HttpRouteDirector
HttpRouteDirector.
This implementation is stateless and therefore thread-safe.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.
|
public int nextStep(RouteInfo plan, RouteInfo fact)
nextStep in interface HttpRouteDirectorplan - the planned routefact - the currently established route, or
null if nothing is establishedprotected int firstStep(RouteInfo plan)
plan - the planned routeprotected int directStep(RouteInfo plan, RouteInfo fact)
plan - the planned routefact - the currently established routeprotected int proxiedStep(RouteInfo plan, RouteInfo fact)
plan - the planned routefact - the currently established routeCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.