Package io.inversion

Interface Api.ApiListener

  • All Known Subinterfaces:
    Engine.EngineListener
    Enclosing class:
    Api

    public static interface Api.ApiListener
    Listener that can be registered with an Api to receive lifecycle, per request and per error callback notifications.
    • Method Detail

      • onStartup

        default void onStartup​(Engine engine,
                               Api api)
      • onShutdown

        default void onShutdown​(Engine engine,
                                Api api)
      • onAfterRequest

        default void onAfterRequest​(Request req,
                                    Response res)
      • onBeforeFinally

        default void onBeforeFinally​(Request req,
                                     Response res)