public class UndertowReactiveWebServerFactory extends AbstractReactiveWebServerFactory
ReactiveWebServerFactory
that can be used to create UndertowWebServer
s.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
UndertowBuilderCustomizer s that should be used to customize the
Undertow Builder . |
Collection<UndertowBuilderCustomizer> |
getBuilderCustomizers()
Returns a mutable collection of the
UndertowBuilderCustomizer s 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
UndertowBuilderCustomizer s 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, getHttp2, getPort, getServerHeader, getSsl, getSslStoreProvider, setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setSsl, setSslStoreProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setSsl, setSslStoreProvider
addErrorPages
public 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)
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()
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)
UndertowBuilderCustomizer
s that should be applied to the Undertow
Builder
. Calling this method will replace any
existing customizers.customizers
- the customizers to setpublic Collection<UndertowBuilderCustomizer> getBuilderCustomizers()
UndertowBuilderCustomizer
s that will be
applied to the Undertow Builder
.public void addBuilderCustomizers(UndertowBuilderCustomizer... customizers)
UndertowBuilderCustomizer
s that should be used to customize the
Undertow Builder
.customizers
- the customizers to addCopyright © 2017 Pivotal Software, Inc.. All rights reserved.