Class UndertowHttpServer

  • All Implemented Interfaces:
    HttpServer

    public class UndertowHttpServer
    extends Object
    implements HttpServer
    The Netty HTTP server.
    Author:
    Manfred Riem (mriem@manorrock.com)
    • Constructor Detail

      • UndertowHttpServer

        public UndertowHttpServer()
        Constructor.
      • UndertowHttpServer

        public UndertowHttpServer​(int serverPort)
        Constructor.
        Parameters:
        serverPort - the server port.
      • UndertowHttpServer

        public UndertowHttpServer​(int serverPort,
                                  HttpServerProcessor httpServerProcessor)
        Constructor.
        Parameters:
        serverPort - the server port.
        httpServerProcessor - the HTTP server processor.
    • Method Detail

      • isRunning

        public boolean isRunning()
        Is the server running?
        Specified by:
        isRunning in interface HttpServer
        Returns:
        true if running, false otherwise.
      • start

        public void start()
        Start the server.
        Specified by:
        start in interface HttpServer
      • stop

        public void stop()
        Stops the server.
        Specified by:
        stop in interface HttpServer