@Contract(threading=STATELESS) public interface HttpRouteDirector
Modifier and Type | Field and Description |
---|---|
static int |
COMPLETE
Indicates that the route is complete.
|
static int |
CONNECT_PROXY
Step: open connection to proxy.
|
static int |
CONNECT_TARGET
Step: open connection to target.
|
static int |
LAYER_PROTOCOL
Step: layer protocol (over tunnel).
|
static int |
TUNNEL_PROXY
Step: tunnel through proxy to other proxy.
|
static int |
TUNNEL_TARGET
Step: tunnel through proxy to target.
|
static int |
UNREACHABLE
Indicates that the route can not be established at all.
|
Modifier and Type | Method and Description |
---|---|
int |
nextStep(RouteInfo plan,
RouteInfo fact)
Provides the next step.
|
static final int COMPLETE
static final int CONNECT_PROXY
static final int CONNECT_TARGET
static final int LAYER_PROTOCOL
static final int TUNNEL_PROXY
static final int TUNNEL_TARGET
static final int UNREACHABLE
int nextStep(RouteInfo plan, RouteInfo fact)
plan
- the planned routefact
- the currently established route, or
null
if nothing is established