@ConfigurationProperties(value="undertow")
public class UndertowConfiguration
extends io.micronaut.http.server.HttpServerConfiguration
io.micronaut.http.server.HttpServerConfiguration.CorsConfiguration, io.micronaut.http.server.HttpServerConfiguration.HostResolutionConfiguration, io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration
Modifier and Type | Field and Description |
---|---|
protected io.undertow.Undertow.Builder |
undertowBuilder |
DEFAULT_DATEHEADER, DEFAULT_DUAL_PROTOCOL, DEFAULT_IDLE_TIME_MINUTES, DEFAULT_LOG_HANDLED_EXCEPTIONS, DEFAULT_MAX_REQUEST_SIZE, DEFAULT_PORT, DEFAULT_RANDOM_PORT, DEFAULT_READ_IDLE_TIME_MINUTES, DEFAULT_WRITE_IDLE_TIME_MINUTES, PREFIX
Constructor and Description |
---|
UndertowConfiguration(io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration> |
getMultipartConfiguration() |
java.util.Map<java.lang.String,java.lang.String> |
getServerOptions() |
java.util.Map<java.lang.String,java.lang.String> |
getSocketOptions() |
io.undertow.Undertow.Builder |
getUndertowBuilder() |
java.util.Map<java.lang.String,java.lang.String> |
getWorkerOptions() |
void |
setServerOptions(java.util.Map<java.lang.String,java.lang.String> serverOptions) |
void |
setSocketOptions(java.util.Map<java.lang.String,java.lang.String> socketOptions)
Sets the socket options.
|
void |
setWorkerOptions(java.util.Map<java.lang.String,java.lang.String> workerOptions)
Sets the worker options.
|
getApplicationConfiguration, getClientAddressHeader, getContextPath, getCors, getDefaultCharset, getHost, getHostResolution, getIdleTimeout, getMaxRequestSize, getMultipart, getPort, getReadIdleTimeout, getReadTimeout, getServerHeader, getThreadSelection, getWriteIdleTimeout, isDateHeader, isDualProtocol, isLogHandledExceptions, setClientAddressHeader, setContextPath, setCors, setDateHeader, setDefaultCharset, setDualProtocol, setHost, setHostResolution, setIdleTimeout, setLogHandledExceptions, setMaxRequestSize, setMultipart, setPort, setReadIdleTimeout, setReadTimeout, setServerHeader, setThreadSelection, setWriteIdleTimeout
@ConfigurationBuilder protected io.undertow.Undertow.Builder undertowBuilder
public UndertowConfiguration(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration)
multipartConfiguration
- The multipart configurationpublic io.undertow.Undertow.Builder getUndertowBuilder()
public java.util.Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration> getMultipartConfiguration()
public java.util.Map<java.lang.String,java.lang.String> getWorkerOptions()
public void setWorkerOptions(@MapFormat(keyFormat=UNDER_SCORE_SEPARATED,transformation=FLAT) java.util.Map<java.lang.String,java.lang.String> workerOptions)
workerOptions
- The worker optionspublic java.util.Map<java.lang.String,java.lang.String> getSocketOptions()
public void setSocketOptions(@MapFormat(keyFormat=UNDER_SCORE_SEPARATED,transformation=FLAT) java.util.Map<java.lang.String,java.lang.String> socketOptions)
socketOptions
- The socket optionspublic java.util.Map<java.lang.String,java.lang.String> getServerOptions()
public void setServerOptions(@MapFormat(keyFormat=UNDER_SCORE_SEPARATED,transformation=FLAT) java.util.Map<java.lang.String,java.lang.String> serverOptions)
serverOptions
- Sets the server options