Interface HttpServer

  • All Known Implementing Classes:
    DefaultHttpServer

    public interface HttpServer
    An interface defines an HTTP server.
    Since:
    1.1
    • Method Detail

      • name

        java.lang.String name()
        Returns the display name of this server.
        Returns:
        the display name of this server
      • isRunning

        boolean isRunning()
        Returns if this server is running or not.
        Returns:
        true if this server is running
      • startup

        HttpServer startup()
                    throws java.lang.Exception
        Start up this server.
        Returns:
        this server
        Throws:
        java.lang.Exception - if any error occurs
      • channel

        io.netty.channel.ServerChannel channel()
        Returns the binding ServerChannel.
        Returns:
        a ServerChannel
      • shutdown

        HttpServer shutdown()
                     throws java.lang.Exception
        Shut down this server.
        Returns:
        this server
        Throws:
        java.lang.Exception - if any error occurs
      • isSslEnabled

        boolean isSslEnabled()
        Returns whether to enable SSL support.
        Returns:
        true if is enabled SSL support