Package org.apache.http.conn.routing
Class BasicRouteDirector
- java.lang.Object
-
- org.apache.http.conn.routing.BasicRouteDirector
-
- All Implemented Interfaces:
HttpRouteDirector
@Contract(threading=IMMUTABLE) public class BasicRouteDirector extends java.lang.Object implements HttpRouteDirector
BasicHttpRouteDirector
implementation.- Since:
- 4.0
-
-
Field Summary
-
Fields inherited from interface org.apache.http.conn.routing.HttpRouteDirector
COMPLETE, CONNECT_PROXY, CONNECT_TARGET, LAYER_PROTOCOL, TUNNEL_PROXY, TUNNEL_TARGET, UNREACHABLE
-
-
Constructor Summary
Constructors Constructor Description BasicRouteDirector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextStep(RouteInfo plan, RouteInfo fact)
Provides the next step.
-
-
-
Method Detail
-
nextStep
public int nextStep(RouteInfo plan, RouteInfo fact)
Provides the next step.- Specified by:
nextStep
in interfaceHttpRouteDirector
- Parameters:
plan
- the planned routefact
- the currently established route, ornull
if nothing is established- Returns:
- one of the constants defined in this class, indicating either the next step to perform, or success, or failure. 0 is for success, a negative value for failure.
-
-