WebServer

interface WebServer

Simple interface that represents a fully configured web server (for example Tomcat, Jetty, Netty). Allows the server to be started and stopped.

Author

Phillip Webb

Dave Syer

Since

2.0.0

Inheritors

Functions

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