public class UndertowReactiveWebServerFactory extends AbstractReactiveWebServerFactory
ReactiveWebServerFactory that can be used to create UndertowWebServers.| Constructor and Description |
|---|
UndertowReactiveWebServerFactory()
Create a new
UndertowReactiveWebServerFactory instance. |
UndertowReactiveWebServerFactory(int port)
Create a new
UndertowReactiveWebServerFactory that listens for requests
using the specified port. |
| Modifier and Type | Method and Description |
|---|---|
WebServer |
getWebServer(org.springframework.http.server.reactive.HttpHandler httpHandler)
Gets a new fully configured but paused
WebServer instance. |
void |
setBufferSize(Integer bufferSize) |
void |
setDirectBuffers(Boolean directBuffers) |
void |
setIoThreads(Integer ioThreads) |
void |
setWorkerThreads(Integer workerThreads) |
addErrorPages, createTempDir, getAddress, getCompression, getErrorPages, getPort, getServerHeader, getSsl, getSslStoreProvider, setAddress, setCompression, setErrorPages, setPort, setServerHeader, setSsl, setSslStoreProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAddress, setCompression, setErrorPages, setPort, setServerHeader, setSsl, setSslStoreProvideraddErrorPagespublic UndertowReactiveWebServerFactory()
UndertowReactiveWebServerFactory instance.public UndertowReactiveWebServerFactory(int port)
UndertowReactiveWebServerFactory that listens for requests
using the specified port.port - the port to listen onpublic WebServer getWebServer(org.springframework.http.server.reactive.HttpHandler httpHandler)
ReactiveWebServerFactoryWebServer 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 requestsWebServerWebServer.stop()public void setBufferSize(Integer bufferSize)
public void setIoThreads(Integer ioThreads)
public void setWorkerThreads(Integer workerThreads)
public void setDirectBuffers(Boolean directBuffers)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.