Class AbstractUndertowHttpServer

  • Direct Known Subclasses:
    UndertowHttpServerImplementation

    public abstract class AbstractUndertowHttpServer
    extends java.lang.Object
    Abstract Undertow HTTP server.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract ProcessManager service​(io.undertow.server.HttpServerExchange exchange)
      Services the HttpServerExchange.
      void startHttpServer​(int httpPort, int httpsPort, javax.net.ssl.SSLContext sslContext)
      Starts the HTTP Server.
      void stopHttpServer()
      Stops the HTTP Server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractUndertowHttpServer

        public AbstractUndertowHttpServer()
    • Method Detail

      • startHttpServer

        public void startHttpServer​(int httpPort,
                                    int httpsPort,
                                    javax.net.ssl.SSLContext sslContext)
                             throws java.lang.Exception
        Starts the HTTP Server.
        Parameters:
        httpPort - HTTP port.
        httpsPort - HTTPS secure port.
        sslContext - SSLContext. May be null.
        Throws:
        java.lang.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 java.lang.Exception
        Services the HttpServerExchange.
        Parameters:
        exchange - HttpServerExchange.
        Returns:
        ProcessManager.
        Throws:
        java.lang.Exception - If fails to service the HttpServerExchange.