Interface ConfigurableUndertowWebServerFactory
- All Superinterfaces:
ConfigurableWebServerFactory
,ErrorPageRegistry
,WebServerFactory
- All Known Implementing Classes:
UndertowReactiveWebServerFactory
,UndertowServletWebServerFactory
ConfigurableWebServerFactory
for Undertow-specific features.- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuilderCustomizers
(UndertowBuilderCustomizer... customizers) AddUndertowBuilderCustomizer
s that should be used to customize the UndertowUndertow.Builder
.void
setAccessLogDirectory
(File accessLogDirectory) Set the access log directory.void
setAccessLogEnabled
(boolean accessLogEnabled) Set whether access logs are enabled.void
setAccessLogPattern
(String accessLogPattern) Set the access log pattern.void
setAccessLogPrefix
(String accessLogPrefix) Set the access log prefix.void
setAccessLogRotate
(boolean accessLogRotate) Set whether access logs rotation is enabled.void
setAccessLogSuffix
(String accessLogSuffix) Set the access log suffix.void
setBufferSize
(Integer bufferSize) Set the buffer size.void
setBuilderCustomizers
(Collection<? extends UndertowBuilderCustomizer> customizers) SetUndertowBuilderCustomizer
s that should be applied to the UndertowUndertow.Builder
.void
setIoThreads
(Integer ioThreads) Set the number of IO Threads.void
setUseDirectBuffers
(Boolean useDirectBuffers) Set whether direct buffers should be used.void
setUseForwardHeaders
(boolean useForwardHeaders) Set if x-forward-* headers should be processed.void
setWorkerThreads
(Integer workerThreads) Set the number of Worker Threads.Methods inherited from interface org.springframework.boot.web.server.ConfigurableWebServerFactory
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProvider
Methods inherited from interface org.springframework.boot.web.server.ErrorPageRegistry
addErrorPages
-
Method Details
-
setBuilderCustomizers
SetUndertowBuilderCustomizer
s that should be applied to the UndertowUndertow.Builder
. Calling this method will replace any existing customizers.- Parameters:
customizers
- the customizers to set- Since:
- 2.3.0
-
addBuilderCustomizers
AddUndertowBuilderCustomizer
s that should be used to customize the UndertowUndertow.Builder
.- Parameters:
customizers
- the customizers to add
-
setBufferSize
Set the buffer size.- Parameters:
bufferSize
- buffer size
-
setIoThreads
Set the number of IO Threads.- Parameters:
ioThreads
- number of IO Threads
-
setWorkerThreads
Set the number of Worker Threads.- Parameters:
workerThreads
- number of Worker Threads
-
setUseDirectBuffers
Set whether direct buffers should be used.- Parameters:
useDirectBuffers
- whether direct buffers should be used
-
setAccessLogDirectory
Set the access log directory.- Parameters:
accessLogDirectory
- access log directory
-
setAccessLogPattern
Set the access log pattern.- Parameters:
accessLogPattern
- access log pattern
-
setAccessLogPrefix
Set the access log prefix.- Parameters:
accessLogPrefix
- log prefix
-
setAccessLogSuffix
Set the access log suffix.- Parameters:
accessLogSuffix
- access log suffix
-
setAccessLogEnabled
void setAccessLogEnabled(boolean accessLogEnabled) Set whether access logs are enabled.- Parameters:
accessLogEnabled
- whether access logs are enabled
-
setAccessLogRotate
void setAccessLogRotate(boolean accessLogRotate) Set whether access logs rotation is enabled.- Parameters:
accessLogRotate
- whether access logs rotation is enabled
-
setUseForwardHeaders
void setUseForwardHeaders(boolean useForwardHeaders) Set if x-forward-* headers should be processed.- Parameters:
useForwardHeaders
- if x-forward headers should be used
-