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
Modifier and TypeClassDescriptionstatic class
The access log configuration.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
Fields 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_BUFFER_SIZE, DEFAULT_MAX_REQUEST_SIZE, DEFAULT_PORT, DEFAULT_RANDOM_PORT, DEFAULT_READ_IDLE_TIME_MINUTES, DEFAULT_WRITE_IDLE_TIME_MINUTES, PREFIX
-
Constructor Summary
ConstructorDescriptionUndertowConfiguration
(@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
setAccessLogConfiguration
(@Nullable UndertowConfiguration.AccessLogConfiguration accessLogConfiguration) The access log configuration.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, getMaxRequestBufferSize, getMaxRequestSize, getMultipart, getPort, getReadIdleTimeout, getReadTimeout, getServerHeader, getThreadSelection, getWriteIdleTimeout, isDateHeader, isDispatchOptionsRequests, isDualProtocol, isHttpToHttpsRedirect, isLogHandledExceptions, isNotFoundOnMissingBody, isValidateUrl, setClientAddressHeader, setContextPath, setCors, setDateHeader, setDefaultCharset, setDispatchOptionsRequests, setDualProtocol, setHost, setHostResolution, setHttpToHttpsRedirect, setHttpVersion, setIdleTimeout, setLocaleResolution, setLogHandledExceptions, setMaxRequestBufferSize, setMaxRequestSize, setMultipart, setNotFoundOnMissingBody, 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
-
getAccessLogConfiguration
- Returns:
- The access log configuration.
-
setAccessLogConfiguration
@Inject public void setAccessLogConfiguration(@Nullable @Nullable UndertowConfiguration.AccessLogConfiguration accessLogConfiguration) The access log configuration.- Parameters:
accessLogConfiguration
- Sets the access log configuration.- See Also:
-
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
-