Class JettyFactory

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

@Factory public class JettyFactory extends ServletServerFactory
Factory for the Jetty server.
Since:
1.0
Author:
graemerocher
  • Field Details

  • Constructor Details

    • JettyFactory

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

    • jettyServer

      @Singleton @Primary protected org.eclipse.jetty.server.Server jettyServer(io.micronaut.context.ApplicationContext applicationContext, MicronautServletConfiguration configuration, JettyConfiguration.JettySslConfiguration jettySslConfiguration)
      Builds the Jetty server bean.
      Parameters:
      applicationContext - This application context
      configuration - The servlet configuration
      jettySslConfiguration - The Jetty SSL config
      Returns:
      The Jetty server bean