@Factory public class JettyFactory extends ServletServerFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCE_BASE |
Constructor and Description |
---|
JettyFactory(io.micronaut.core.io.ResourceResolver resourceResolver,
JettyConfiguration serverConfiguration,
io.micronaut.http.ssl.SslConfiguration sslConfiguration,
io.micronaut.context.ApplicationContext applicationContext,
java.util.List<ServletStaticResourceConfiguration> staticResourceConfigurations)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jetty.server.Server |
jettyServer(io.micronaut.context.ApplicationContext applicationContext,
MicronautServletConfiguration configuration)
Builds the Jetty server bean.
|
build, getApplicationContext, getConfiguredHost, getConfiguredPort, getContextPath, getEnvironment, getServerConfiguration, getSslConfiguration, getStaticResourceConfigurations
public static final java.lang.String RESOURCE_BASE
public JettyFactory(io.micronaut.core.io.ResourceResolver resourceResolver, JettyConfiguration serverConfiguration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, java.util.List<ServletStaticResourceConfiguration> staticResourceConfigurations)
resourceResolver
- The resource resolverserverConfiguration
- The server configsslConfiguration
- The SSL configapplicationContext
- The app contextstaticResourceConfigurations
- The static resource configs@Singleton @Primary protected org.eclipse.jetty.server.Server jettyServer(io.micronaut.context.ApplicationContext applicationContext, MicronautServletConfiguration configuration)
applicationContext
- This application contextconfiguration
- The servlet configuration