public class NettyReactiveWebServerFactory extends AbstractReactiveWebServerFactory
ReactiveWebServerFactory
that can be used to create NettyWebServer
s.Constructor and Description |
---|
NettyReactiveWebServerFactory() |
NettyReactiveWebServerFactory(int port) |
Modifier and Type | Method and Description |
---|---|
WebServer |
getWebServer(HttpHandler httpHandler)
Gets a new fully configured but paused
WebServer instance. |
addErrorPages, createTempDir, getAddress, getCompression, getErrorPages, getPort, getServerHeader, getSsl, getSslStoreProvider, setAddress, setCompression, setErrorPages, setPort, setServerHeader, setSsl, setSslStoreProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAddress, setCompression, setErrorPages, setPort, setServerHeader, setSsl, setSslStoreProvider
addErrorPages
public NettyReactiveWebServerFactory()
public NettyReactiveWebServerFactory(int port)
public WebServer getWebServer(HttpHandler httpHandler)
ReactiveWebServerFactory
WebServer
instance. Clients should
not be able to connect to the returned server until WebServer.start()
is
called (which happens when the ApplicationContext
has been fully
refreshed).httpHandler
- the HTTP handler in charge of processing requestsWebServer
WebServer.stop()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.