Class AbstractUndertowHttpServer
- java.lang.Object
-
- net.officefloor.server.http.undertow.AbstractUndertowHttpServer
-
- Direct Known Subclasses:
UndertowHttpServerImplementation
public abstract class AbstractUndertowHttpServer extends java.lang.ObjectAbstract 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 ProcessManagerservice(io.undertow.server.HttpServerExchange exchange)Services theHttpServerExchange.voidstartHttpServer(int httpPort, int httpsPort, javax.net.ssl.SSLContext sslContext)Starts the HTTP Server.voidstopHttpServer()Stops the HTTP Server.
-
-
-
Method Detail
-
startHttpServer
public void startHttpServer(int httpPort, int httpsPort, javax.net.ssl.SSLContext sslContext) throws java.lang.ExceptionStarts 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.
-
-