@Factory public class UndertowFactory extends ServletServerFactory
Constructor and Description |
---|
UndertowFactory(io.micronaut.core.io.ResourceResolver resourceResolver,
UndertowConfiguration configuration,
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 io.undertow.servlet.api.DeploymentInfo |
deploymentInfo(MicronautServletConfiguration servletConfiguration)
The deployment info bean.
|
protected io.undertow.Undertow.Builder |
undertowBuilder(io.undertow.servlet.api.DeploymentInfo deploymentInfo,
MicronautServletConfiguration servletConfiguration)
The undertow builder bean.
|
protected io.undertow.Undertow |
undertowServer(io.undertow.Undertow.Builder builder)
The undertow bean.
|
build, getApplicationContext, getConfiguredHost, getConfiguredPort, getContextPath, getEnvironment, getServerConfiguration, getSslConfiguration, getStaticResourceConfigurations
public UndertowFactory(io.micronaut.core.io.ResourceResolver resourceResolver, UndertowConfiguration configuration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, java.util.List<ServletStaticResourceConfiguration> staticResourceConfigurations)
resourceResolver
- The resource resolverconfiguration
- The configurationsslConfiguration
- The SSL configurationapplicationContext
- The app contextstaticResourceConfigurations
- The static resource configs@Singleton @Primary protected io.undertow.Undertow.Builder undertowBuilder(io.undertow.servlet.api.DeploymentInfo deploymentInfo, MicronautServletConfiguration servletConfiguration)
deploymentInfo
- The deployment infoservletConfiguration
- The servlet configuration@Singleton @Primary protected io.undertow.Undertow undertowServer(io.undertow.Undertow.Builder builder)
builder
- The builder@Singleton @Primary protected io.undertow.servlet.api.DeploymentInfo deploymentInfo(MicronautServletConfiguration servletConfiguration)
servletConfiguration
- The servlet configuration.