Class AbstractUndertowHttpServer
- java.lang.Object
-
- net.officefloor.server.http.undertow.AbstractUndertowHttpServer
-
- Direct Known Subclasses:
UndertowHttpServerImplementation
public abstract class AbstractUndertowHttpServer extends java.lang.Object
Abstract Undertow HTTP server.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractUndertowHttpServer()
-
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 theHttpServerExchange
.void
startHttpServer(int httpPort, int httpsPort, javax.net.ssl.SSLContext sslContext)
Starts the HTTP Server.void
stopHttpServer()
Stops the HTTP Server.
-
-
-
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 benull
.- 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 theHttpServerExchange
.- Parameters:
exchange
-HttpServerExchange
.- Returns:
ProcessManager
.- Throws:
java.lang.Exception
- If fails to service theHttpServerExchange
.
-
-