UndertowWebServer

WebServer that can be used to control an Undertow web server. Usually this class should be created using the UndertowReactiveWebServerFactory and not directly.

Author

Ivan Sopov

Andy Wilkinson

Eddú Meléndez

Christoph Dreis

Brian Clozel

Since

2.0.0

Inheritors

Constructors

Link copied to clipboard
constructor(builder: Undertow.Builder, autoStart: Boolean)
Create a new UndertowWebServer instance.
constructor(builder: Undertow.Builder, httpHandlerFactories: Iterable<HttpHandlerFactory>, autoStart: Boolean)
Create a new UndertowWebServer instance.

Properties

Link copied to clipboard
open val undertow: Undertow

Functions

Link copied to clipboard
open fun destroy()
Destroys the web server such that it cannot be started again.
Link copied to clipboard
open fun getPort(): Int
Return the port this server is listening on.
Link copied to clipboard
Initiates a graceful shutdown of the Undertow web server.
Link copied to clipboard
open fun start()
Starts the web server.
Link copied to clipboard
open fun stop()
Stops the web server.