Package io.inversion

Class Endpoint

  • All Implemented Interfaces:
    java.lang.Comparable<Endpoint>

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

      • actions

        protected final java.util.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. This could have been logically called 'private' but that is a reserved word in Java.
      • api

        protected transient Api api
    • Constructor Detail

      • Endpoint

        public Endpoint()
      • Endpoint

        public Endpoint​(Action... actions)
      • Endpoint

        public Endpoint​(java.lang.String ruleMatcherSpec,
                        Action... actions)
    • Method Detail

      • compareTo

        public int compareTo​(Endpoint o)
      • getApi

        public Api getApi()
      • withInternal

        public Endpoint withInternal​(boolean internal)
      • isInternal

        public boolean isInternal()
      • getAction

        public Action getAction​(java.lang.String name)
      • getActions

        public java.util.List<Action> getActions()