Package io.micronaut.servlet.undertow
Class UndertowFactory
java.lang.Object
io.micronaut.http.ssl.SslBuilder<SSLContext>
io.micronaut.servlet.engine.server.ServletServerFactory
io.micronaut.servlet.undertow.UndertowFactory
Factory for the undertow server.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionUndertowFactory
(io.micronaut.core.io.ResourceResolver resourceResolver, UndertowConfiguration configuration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, List<ServletStaticResourceConfiguration> staticResourceConfigurations) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class io.micronaut.servlet.engine.server.ServletServerFactory
build, build, getApplicationContext, getConfiguredHost, getConfiguredPort, getContextPath, getEnvironment, getServerConfiguration, getSslConfiguration, getStaticResourceConfigurations
Methods inherited from class io.micronaut.http.ssl.SslBuilder
getKeyManagerFactory, getKeyStore, getTrustManagerFactory, getTrustStore, load
-
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 resolverconfiguration
- The configurationsslConfiguration
- The SSL configurationapplicationContext
- The app contextstaticResourceConfigurations
- 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 infoservletConfiguration
- 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
-