Package org.apache.http.conn.routing
Interface HttpRouteDirector
- All Known Implementing Classes:
BasicRouteDirector
public interface HttpRouteDirector
Provides directions on establishing a route.
Implementations of this interface compare a planned route with
a tracked route and indicate the next step required.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that the route is complete.static final intStep: open connection to proxy.static final intStep: open connection to target.static final intStep: layer protocol (over tunnel).static final intStep: tunnel through proxy to other proxy.static final intStep: tunnel through proxy to target.static final intIndicates that the route can not be established at all. -
Method Summary
-
Field Details
-
UNREACHABLE
static final int UNREACHABLEIndicates that the route can not be established at all.- See Also:
-
COMPLETE
static final int COMPLETEIndicates that the route is complete.- See Also:
-
CONNECT_TARGET
static final int CONNECT_TARGETStep: open connection to target.- See Also:
-
CONNECT_PROXY
static final int CONNECT_PROXYStep: open connection to proxy.- See Also:
-
TUNNEL_TARGET
static final int TUNNEL_TARGETStep: tunnel through proxy to target.- See Also:
-
TUNNEL_PROXY
static final int TUNNEL_PROXYStep: tunnel through proxy to other proxy.- See Also:
-
LAYER_PROTOCOL
static final int LAYER_PROTOCOLStep: layer protocol (over tunnel).- See Also:
-
-
Method Details
-
nextStep
Provides the next step.- Parameters:
plan- the planned routefact- the currently established route, ornullif nothing is established- Returns:
- one of the constants defined in this interface, indicating either the next step to perform, or success, or failure. 0 is for success, a negative value for failure.
-