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

    • 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

      @Singleton @Primary protected io.undertow.servlet.api.DeploymentInfo deploymentInfo(MicronautServletConfiguration servletConfiguration)
      The deployment info bean.
      Parameters:
      servletConfiguration - The servlet configuration.
      Returns:
      The deployment info