public class UndertowWebServer extends Object implements WebServer
WebServer that can be used to control an Undertow web server. Usually this
class should be created using the UndertowReactiveWebServerFactory and not
directly.| Constructor and Description |
|---|
UndertowWebServer(io.undertow.Undertow.Builder builder,
boolean autoStart)
Create a new
UndertowWebServer instance. |
UndertowWebServer(io.undertow.Undertow.Builder builder,
boolean autoStart,
Closeable closeable)
Create a new
UndertowWebServer instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Return the port this server is listening on.
|
void |
start()
Starts the web server.
|
void |
stop()
Stops the web server.
|
public UndertowWebServer(io.undertow.Undertow.Builder builder,
boolean autoStart)
UndertowWebServer instance.builder - the builderautoStart - if the server should be startedpublic UndertowWebServer(io.undertow.Undertow.Builder builder,
boolean autoStart,
Closeable closeable)
UndertowWebServer instance.builder - the builderautoStart - if the server should be startedcloseable - called when the server is stoppedpublic void start()
throws WebServerException
WebServerstart in interface WebServerWebServerException - if the server cannot be startedpublic void stop()
throws WebServerException
WebServerstop in interface WebServerWebServerException - if the server cannot be stoppedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.