public class NettyWebServer extends Object implements WebServer
WebServer that can be used to control a Reactor Netty web server. Usually this
class should be created using the NettyReactiveWebServerFactory and not
directly.| Constructor and Description |
|---|
NettyWebServer(reactor.ipc.netty.http.server.HttpServer httpServer,
ReactorHttpHandlerAdapter handlerAdapter,
Duration lifecycleTimeout) |
| 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 NettyWebServer(reactor.ipc.netty.http.server.HttpServer httpServer,
ReactorHttpHandlerAdapter handlerAdapter,
Duration lifecycleTimeout)
public 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 © 2018 Pivotal Software, Inc.. All rights reserved.