Class AbstractUndertowHttpServer
java.lang.Object
net.officefloor.server.http.undertow.AbstractUndertowHttpServer
- Direct Known Subclasses:
UndertowHttpServerImplementation
Abstract Undertow HTTP server.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ProcessManagerservice(io.undertow.server.HttpServerExchange exchange) Services theHttpServerExchange.voidstartHttpServer(int httpPort, int httpsPort, SSLContext sslContext) Starts the HTTP Server.voidStops the HTTP Server.
-
Constructor Details
-
AbstractUndertowHttpServer
public AbstractUndertowHttpServer()
-
-
Method Details
-
startHttpServer
Starts the HTTP Server.- Parameters:
httpPort- HTTP port.httpsPort- HTTPS secure port.sslContext-SSLContext. May benull.- 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 theHttpServerExchange.- Parameters:
exchange-HttpServerExchange.- Returns:
ProcessManager.- Throws:
Exception- If fails to service theHttpServerExchange.
-