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 |
|---|---|
void |
addBuilderCustomizers(UndertowBuilderCustomizer... customizers)
Add
UndertowBuilderCustomizers that should be used to customize the
Undertow Builder. |
Collection<UndertowBuilderCustomizer> |
getBuilderCustomizers()
Returns a mutable collection of the
UndertowBuilderCustomizers that will be
applied to the Undertow Builder. |
WebServer |
getWebServer(org.springframework.http.server.reactive.HttpHandler httpHandler)
Gets a new fully configured but paused
WebServer instance. |
void |
setBufferSize(Integer bufferSize) |
void |
setBuilderCustomizers(Collection<? extends UndertowBuilderCustomizer> customizers)
Set
UndertowBuilderCustomizers that should be applied to the Undertow
Builder. |
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)
public void setBuilderCustomizers(Collection<? extends UndertowBuilderCustomizer> customizers)
UndertowBuilderCustomizers that should be applied to the Undertow
Builder. Calling this method will replace any
existing customizers.customizers - the customizers to setpublic Collection<UndertowBuilderCustomizer> getBuilderCustomizers()
UndertowBuilderCustomizers that will be
applied to the Undertow Builder.public void addBuilderCustomizers(UndertowBuilderCustomizer... customizers)
UndertowBuilderCustomizers that should be used to customize the
Undertow Builder.customizers - the customizers to addCopyright © 2017 Pivotal Software, Inc.. All rights reserved.