Interface Middleware

    • Method Detail

      • onServerClosed

        default void onServerClosed()
                             throws java.lang.Exception
        This method will be invoked by framework when the HttpServer which this Middleware belongs to is just be closed.

        This method is equivalent to close().

        Throws:
        java.lang.Exception - if any error occurs
      • close

        default void close()
                    throws java.lang.Exception
        Closes this Middleware and releases any system resources associated with it.

        Default do nothing.

        Throws:
        java.lang.Exception - if any error occurs