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
    Modifier and Type
    Class
    Description
    static 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
    Modifier and Type
    Field
    Description
    protected io.undertow.Undertow.Builder
     

    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

    Constructors
    Constructor
    Description
    UndertowConfiguration(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration>
     
     
     
    io.undertow.Undertow.Builder
     
     
    void
    The access log configuration.
    void
     
    void
    Sets the socket options.
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Optional<UndertowConfiguration.AccessLogConfiguration> 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

      public Map<String,String> 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

      public Map<String,String> 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

      public Map<String,String> 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