Class AbstractUndertowHttpServer

java.lang.Object
net.officefloor.server.http.undertow.AbstractUndertowHttpServer
Direct Known Subclasses:
UndertowHttpServerImplementation

public abstract class AbstractUndertowHttpServer extends Object
Abstract Undertow HTTP server.
Author:
Daniel Sagenschneider
  • Constructor Details

    • AbstractUndertowHttpServer

      public AbstractUndertowHttpServer()
  • Method Details

    • startHttpServer

      public void startHttpServer(int httpPort, int httpsPort, SSLContext sslContext) throws Exception
      Starts the HTTP Server.
      Parameters:
      httpPort - HTTP port.
      httpsPort - HTTPS secure port.
      sslContext - SSLContext. May be null.
      Throws:
      Exception - If fails to start the HTTP Server.
    • stopHttpServer

      public void stopHttpServer()
      Stops the HTTP Server.
    • service

      protected abstract ProcessManager service(io.undertow.server.HttpServerExchange exchange) throws Exception
      Services the HttpServerExchange.
      Parameters:
      exchange - HttpServerExchange.
      Returns:
      ProcessManager.
      Throws:
      Exception - If fails to service the HttpServerExchange.