Class UndertowFactory

java.lang.Object
io.micronaut.http.ssl.SslBuilder<SSLContext>
io.micronaut.servlet.engine.server.ServletServerFactory
io.micronaut.servlet.undertow.UndertowFactory

@Factory public class UndertowFactory extends ServletServerFactory
Factory for the undertow server.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • UndertowFactory

      public UndertowFactory(io.micronaut.core.io.ResourceResolver resourceResolver, UndertowConfiguration configuration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, List<ServletStaticResourceConfiguration> staticResourceConfigurations)
      Default constructor.
      Parameters:
      resourceResolver - The resource resolver
      configuration - The configuration
      sslConfiguration - The SSL configuration
      applicationContext - The app context
      staticResourceConfigurations - The static resource configs
  • Method Details

    • getServerConfiguration

      public UndertowConfiguration getServerConfiguration()
      Overrides:
      getServerConfiguration in class ServletServerFactory
      Returns:
      The server config
    • undertowBuilder

      @Singleton @Primary protected io.undertow.Undertow.Builder undertowBuilder(io.undertow.servlet.api.DeploymentInfo deploymentInfo, MicronautServletConfiguration servletConfiguration)
      The undertow builder bean.
      Parameters:
      deploymentInfo - The deployment info
      servletConfiguration - The servlet configuration
      Returns:
      The builder
    • undertowServer

      @Singleton @Primary protected io.undertow.Undertow undertowServer(io.undertow.Undertow.Builder builder)
      The undertow bean.
      Parameters:
      builder - The builder
      Returns:
      The undertow bean
    • deploymentInfo

      @Deprecated(forRemoval=true, since="4.8.0") protected io.undertow.servlet.api.DeploymentInfo deploymentInfo(MicronautServletConfiguration servletConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use {@link ##deploymentInfo(MicronautServletConfiguration, Collection)}
      The deployment info bean.
      Parameters:
      servletConfiguration - The servlet configuration.
      Returns:
      The deployment info
    • deploymentInfo

      @Singleton @Primary protected io.undertow.servlet.api.DeploymentInfo deploymentInfo(MicronautServletConfiguration servletConfiguration, Collection<jakarta.servlet.ServletContainerInitializer> servletInitializers)
      The deployment info bean.
      Parameters:
      servletConfiguration - The servlet configuration.
      servletInitializers - The servlet initializer
      Returns:
      The deployment info