org.apache.http.conn.routing.HttpRouteDirector |
Known Indirect Subclasses |
This interface is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
Provides directions on establishing a route. Implementations of this interface compare a planned route with a tracked route and indicate the next step required.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | COMPLETE | Indicates that the route is complete. | |||||||||
int | CONNECT_PROXY | Step: open connection to proxy. | |||||||||
int | CONNECT_TARGET | Step: open connection to target. | |||||||||
int | LAYER_PROTOCOL | Step: layer protocol (over tunnel). | |||||||||
int | TUNNEL_PROXY | Step: tunnel through proxy to other proxy. | |||||||||
int | TUNNEL_TARGET | Step: tunnel through proxy to target. | |||||||||
int | UNREACHABLE | Indicates that the route can not be established at all. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Provides the next step.
|
Indicates that the route is complete.
Step: open connection to proxy.
Step: open connection to target.
Step: layer protocol (over tunnel).
Step: tunnel through proxy to other proxy.
Step: tunnel through proxy to target.
Indicates that the route can not be established at all.
Provides the next step.
plan | the planned route |
---|---|
fact | the currently established route, or
null if nothing is established |