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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Indicates that the route is complete.
    static final int
    Step: open connection to proxy.
    static final int
    Step: open connection to target.
    static final int
    Step: layer protocol (over tunnel).
    static final int
    Step: tunnel through proxy to other proxy.
    static final int
    Step: tunnel through proxy to target.
    static final int
    Indicates that the route can not be established at all.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Provides the next step.
  • Field Details

    • UNREACHABLE

      static final int UNREACHABLE
      Indicates that the route can not be established at all.
      See Also:
    • COMPLETE

      static final int COMPLETE
      Indicates that the route is complete.
      See Also:
    • CONNECT_TARGET

      static final int CONNECT_TARGET
      Step: open connection to target.
      See Also:
    • CONNECT_PROXY

      static final int CONNECT_PROXY
      Step: open connection to proxy.
      See Also:
    • TUNNEL_TARGET

      static final int TUNNEL_TARGET
      Step: tunnel through proxy to target.
      See Also:
    • TUNNEL_PROXY

      static final int TUNNEL_PROXY
      Step: tunnel through proxy to other proxy.
      See Also:
    • LAYER_PROTOCOL

      static final int LAYER_PROTOCOL
      Step: layer protocol (over tunnel).
      See Also:
  • Method Details

    • nextStep

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