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.netty.http.server.HttpServer httpServer,
org.springframework.http.server.reactive.ReactorHttpHandlerAdapter handlerAdapter,
Duration lifecycleTimeout) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Return the port this server is listening on.
|
void |
setRouteProviders(List<NettyRouteProvider> routeProviders) |
void |
start()
Starts the web server.
|
void |
stop()
Stops the web server.
|
public NettyWebServer(reactor.netty.http.server.HttpServer httpServer,
org.springframework.http.server.reactive.ReactorHttpHandlerAdapter handlerAdapter,
Duration lifecycleTimeout)
public void setRouteProviders(List<NettyRouteProvider> routeProviders)
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 © 2019 Pivotal Software, Inc.. All rights reserved.