public interface ConfigurableUndertowWebServerFactory extends ConfigurableWebServerFactory
ConfigurableWebServerFactory
for Undertow-specific features.UndertowServletWebServerFactory
,
UndertowReactiveWebServerFactory
Modifier and Type | Method and Description |
---|---|
void |
addBuilderCustomizers(UndertowBuilderCustomizer... customizers)
Add
UndertowBuilderCustomizer s that should be used to customize the
Undertow Undertow.Builder . |
void |
setAccessLogDirectory(java.io.File accessLogDirectory)
Set the access log directory.
|
void |
setAccessLogEnabled(boolean accessLogEnabled)
Set whether access logs are enabled.
|
void |
setAccessLogPattern(java.lang.String accessLogPattern)
Set the access log pattern.
|
void |
setAccessLogPrefix(java.lang.String accessLogPrefix)
Set the access log prefix.
|
void |
setAccessLogRotate(boolean accessLogRotate)
Set whether access logs rotation is enabled.
|
void |
setAccessLogSuffix(java.lang.String accessLogSuffix)
Set the access log suffix.
|
void |
setBufferSize(java.lang.Integer bufferSize)
Set the buffer size.
|
void |
setBuilderCustomizers(java.util.Collection<? extends UndertowBuilderCustomizer> customizers)
Set
UndertowBuilderCustomizer s that should be applied to the Undertow
Undertow.Builder . |
void |
setIoThreads(java.lang.Integer ioThreads)
Set the number of IO Threads.
|
void |
setUseDirectBuffers(java.lang.Boolean useDirectBuffers)
Set whether direct buffers should be used.
|
void |
setUseForwardHeaders(boolean useForwardHeaders)
Set if x-forward-* headers should be processed.
|
void |
setWorkerThreads(java.lang.Integer workerThreads)
Set the number of Worker Threads.
|
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProvider
addErrorPages
void setBuilderCustomizers(java.util.Collection<? extends UndertowBuilderCustomizer> customizers)
UndertowBuilderCustomizer
s that should be applied to the Undertow
Undertow.Builder
. Calling this method will replace any existing customizers.customizers
- the customizers to setvoid addBuilderCustomizers(UndertowBuilderCustomizer... customizers)
UndertowBuilderCustomizer
s that should be used to customize the
Undertow Undertow.Builder
.customizers
- the customizers to addvoid setBufferSize(java.lang.Integer bufferSize)
bufferSize
- buffer sizevoid setIoThreads(java.lang.Integer ioThreads)
ioThreads
- number of IO Threadsvoid setWorkerThreads(java.lang.Integer workerThreads)
workerThreads
- number of Worker Threadsvoid setUseDirectBuffers(java.lang.Boolean useDirectBuffers)
useDirectBuffers
- whether direct buffers should be usedvoid setAccessLogDirectory(java.io.File accessLogDirectory)
accessLogDirectory
- access log directoryvoid setAccessLogPattern(java.lang.String accessLogPattern)
accessLogPattern
- access log patternvoid setAccessLogPrefix(java.lang.String accessLogPrefix)
accessLogPrefix
- log prefixvoid setAccessLogSuffix(java.lang.String accessLogSuffix)
accessLogSuffix
- access log suffixvoid setAccessLogEnabled(boolean accessLogEnabled)
accessLogEnabled
- whether access logs are enabledvoid setAccessLogRotate(boolean accessLogRotate)
accessLogRotate
- whether access logs rotation is enabledvoid setUseForwardHeaders(boolean useForwardHeaders)
useForwardHeaders
- if x-forward headers should be used