Package io.micronaut.servlet.undertow
Class UndertowConfiguration
java.lang.Object
io.micronaut.http.server.HttpServerConfiguration
io.micronaut.servlet.undertow.UndertowConfiguration
- All Implemented Interfaces:
io.micronaut.http.context.ServerContextPathProvider
@ConfigurationProperties("undertow")
@Replaces(io.micronaut.http.server.HttpServerConfiguration.class)
public class UndertowConfiguration
extends io.micronaut.http.server.HttpServerConfiguration
Configuration for the Undertow server.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.http.server.HttpServerConfiguration
io.micronaut.http.server.HttpServerConfiguration.CorsConfiguration, io.micronaut.http.server.HttpServerConfiguration.HostResolutionConfiguration, io.micronaut.http.server.HttpServerConfiguration.HttpLocaleResolutionConfigurationProperties, io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration
-
Field Summary
FieldsFields inherited from class io.micronaut.http.server.HttpServerConfiguration
DEFAULT_DATEHEADER, DEFAULT_DISPATCH_OPTIONS_REQUESTS, DEFAULT_DUAL_PROTOCOL, DEFAULT_HTTP_TO_HTTPS_REDIRECT, 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 Summary
ConstructorsConstructorDescriptionUndertowConfiguration
(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration>
io.undertow.Undertow.Builder
void
setServerOptions
(Map<String, String> serverOptions) void
setSocketOptions
(Map<String, String> socketOptions) Sets the socket options.void
setWorkerOptions
(Map<String, String> workerOptions) Sets the worker options.Methods inherited from class io.micronaut.http.server.HttpServerConfiguration
getApplicationConfiguration, getClientAddressHeader, getContextPath, getCors, getDefaultCharset, getHost, getHostResolution, getHttpVersion, getIdleTimeout, getLocaleResolution, getMaxRequestSize, getMultipart, getPort, getReadIdleTimeout, getReadTimeout, getServerHeader, getThreadSelection, getWriteIdleTimeout, isDateHeader, isDispatchOptionsRequests, isDualProtocol, isHttpToHttpsRedirect, isLogHandledExceptions, isValidateUrl, setClientAddressHeader, setContextPath, setCors, setDateHeader, setDefaultCharset, setDispatchOptionsRequests, setDualProtocol, setHost, setHostResolution, setHttpToHttpsRedirect, setHttpVersion, setIdleTimeout, setLocaleResolution, setLogHandledExceptions, setMaxRequestSize, setMultipart, setPort, setReadIdleTimeout, setReadTimeout, setServerHeader, setThreadSelection, setValidateUrl, setWriteIdleTimeout
-
Field Details
-
undertowBuilder
@ConfigurationBuilder protected io.undertow.Undertow.Builder undertowBuilder
-
-
Constructor Details
-
UndertowConfiguration
public UndertowConfiguration(@Nullable @Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration) Default constructor.- Parameters:
multipartConfiguration
- The multipart configuration
-
-
Method Details
-
getUndertowBuilder
public io.undertow.Undertow.Builder getUndertowBuilder()- Returns:
- The undertow builder
-
getMultipartConfiguration
public Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration> getMultipartConfiguration()- Returns:
- The multipart configuration
-
getWorkerOptions
- Returns:
- The worker options
-
setWorkerOptions
public void setWorkerOptions(@MapFormat(keyFormat=UNDER_SCORE_SEPARATED,transformation=FLAT) Map<String, String> workerOptions) Sets the worker options.- Parameters:
workerOptions
- The worker options
-
getSocketOptions
- Returns:
- The socket options.
-
setSocketOptions
public void setSocketOptions(@MapFormat(keyFormat=UNDER_SCORE_SEPARATED,transformation=FLAT) Map<String, String> socketOptions) Sets the socket options.- Parameters:
socketOptions
- The socket options
-
getServerOptions
- Returns:
- The server options.
-
setServerOptions
public void setServerOptions(@MapFormat(keyFormat=UNDER_SCORE_SEPARATED,transformation=FLAT) Map<String, String> serverOptions) - Parameters:
serverOptions
- Sets the server options
-