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. |
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 void start() throws WebServerException
WebServer
start
in interface WebServer
WebServerException
- if the server cannot be startedpublic void stop() throws WebServerException
WebServer
stop
in interface WebServer
WebServerException
- if the server cannot be stoppedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.