@Contract(threading=STATELESS) public class BasicRouteDirector extends Object implements HttpRouteDirector
HttpRouteDirector implementation.| 限定符和类型 | 字段和说明 |
|---|---|
static BasicRouteDirector |
INSTANCE
Singleton instance.
|
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 static final BasicRouteDirector INSTANCE
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 routeCopyright © 2023. All rights reserved.