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 reactorServer,
org.springframework.http.server.reactive.ReactorHttpHandlerAdapter handlerAdapter) |
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 reactorServer, org.springframework.http.server.reactive.ReactorHttpHandlerAdapter handlerAdapter)
public 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 © 2017 Pivotal Software, Inc.. All rights reserved.