Interface HttpServerComponent

    • Method Detail

      • componentType

        java.lang.Class<? extends HttpServerComponent> componentType()
        Returns the type of the component.
        Returns:
        the type of the component
      • onServerClosed

        default void onServerClosed()
                             throws java.lang.Exception
        This method will be invoked by framework when the HttpServer which this HttpServerComponent 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 HttpServerComponent and releases any system resources associated with it.

        Default do nothing.

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