@Immutable public class BasicRouteDirector extends java.lang.Object implements HttpRouteDirector
HttpRouteDirector implementation.COMPLETE, CONNECT_PROXY, CONNECT_TARGET, LAYER_PROTOCOL, TUNNEL_PROXY, TUNNEL_TARGET, UNREACHABLE| 构造器和说明 |
|---|
BasicRouteDirector() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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 route