Class BasicRouteDirector

java.lang.Object
org.apache.http.conn.routing.BasicRouteDirector
All Implemented Interfaces:
HttpRouteDirector

@Contract(threading=IMMUTABLE) public class BasicRouteDirector extends Object implements HttpRouteDirector
Basic HttpRouteDirector implementation.
Since:
4.0
  • Constructor Details

    • BasicRouteDirector

      public BasicRouteDirector()
  • Method Details

    • nextStep

      public int nextStep(RouteInfo plan, RouteInfo fact)
      Provides the next step.
      Specified by:
      nextStep in interface HttpRouteDirector
      Parameters:
      plan - the planned route
      fact - the currently established route, or null 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.