Class UndertowHttpServer

java.lang.Object
cloud.piranha.http.undertow.UndertowHttpServer
All Implemented Interfaces:
HttpServer

public class UndertowHttpServer
extends java.lang.Object
implements HttpServer
The Undertow implementation of HTTP Server.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • 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 Details

    • getHttpServerProcessor

      public HttpServerProcessor getHttpServerProcessor()
      Get the HTTP server processor.
      Specified by:
      getHttpServerProcessor in interface HttpServer
      Returns:
      the HTTP server processor.
    • getSSL

      public boolean getSSL()
      Get the SSL boolean flag.
      Specified by:
      getSSL in interface HttpServer
      Returns:
      the SSL boolean flag.
    • getServerPort

      public int getServerPort()
      Get the server port.
      Specified by:
      getServerPort in interface HttpServer
      Returns:
      the server port.
    • isRunning

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

      public void setHttpServerProcessor​(HttpServerProcessor httpServerProcessor)
      Set the HTTP server processor.
      Specified by:
      setHttpServerProcessor in interface HttpServer
      Parameters:
      httpServerProcessor - the HTTP server processor.
    • setSSL

      public void setSSL​(boolean ssl)
      Set the SSL boolean flag.
      Specified by:
      setSSL in interface HttpServer
      Parameters:
      ssl - the SSL boolean flag.
    • setServerPort

      public void setServerPort​(int serverPort)
      Set the server port.
      Specified by:
      setServerPort in interface HttpServer
      Parameters:
      serverPort - the server port.
    • 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