Package io.inversion

Class Endpoint

All Implemented Interfaces:
Comparable<Endpoint>

public class Endpoint extends Rule<Endpoint>
A single Endpoint, bundling one or more Path match relative Actions, is selected to service a Request.
  • Field Details

    • actions

      protected final List<Action> actions
      The Actions that are 'local' to this request.

      These Actions are not run each Request automatically.

      Compared to Actions that are registered directly with the Api via Api.withAction, these Actions are path matched relative to the Path that matched to select this Endpoint vs a different Endpoint.

    • internal

      protected boolean internal
      Internal Endpoints can only be called by recursive calls to the engine when Chain.depth() is @gt; 1.
  • Constructor Details

    • Endpoint

      public Endpoint()
    • Endpoint

      public Endpoint(String methods, String includePaths, Action... actions)
  • Method Details

    • withInternal

      public Endpoint withInternal(boolean internal)
    • isInternal

      public boolean isInternal()
    • getActions

      public List<Action> getActions()
    • withActions

      public Endpoint withActions(Action... actions)
    • withAction

      public Endpoint withAction(Action action)