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
- Version:
- $Revision: 620255 $
- Author:
- Roland Weber
-
Field Summary
Fields Modifier and Type Field Description static intCOMPLETEIndicates that the route is complete.static intCONNECT_PROXYStep: open connection to proxy.static intCONNECT_TARGETStep: open connection to target.static intLAYER_PROTOCOLStep: layer protocol (over tunnel).static intTUNNEL_PROXYStep: tunnel through proxy to other proxy.static intTUNNEL_TARGETStep: tunnel through proxy to target.static intUNREACHABLEIndicates 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:
- Constant Field Values
-
COMPLETE
static final int COMPLETEIndicates that the route is complete.- See Also:
- Constant Field Values
-
CONNECT_TARGET
static final int CONNECT_TARGETStep: open connection to target.- See Also:
- Constant Field Values
-
CONNECT_PROXY
static final int CONNECT_PROXYStep: open connection to proxy.- See Also:
- Constant Field Values
-
TUNNEL_TARGET
static final int TUNNEL_TARGETStep: tunnel through proxy to target.- See Also:
- Constant Field Values
-
TUNNEL_PROXY
static final int TUNNEL_PROXYStep: tunnel through proxy to other proxy.- See Also:
- Constant Field Values
-
LAYER_PROTOCOL
static final int LAYER_PROTOCOLStep: layer protocol (over tunnel).- See Also:
- Constant Field Values
-
-
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.
-