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) Deprecated, for removal: This API element is subject to removal in a future version.protected io.undertow.servlet.api.DeploymentInfo
deploymentInfo
(MicronautServletConfiguration servletConfiguration, Collection<jakarta.servlet.ServletContainerInitializer> servletInitializers) 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, 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
-
getServerConfiguration
- Overrides:
getServerConfiguration
in classServletServerFactory
- Returns:
- The server config
-
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
@Deprecated(forRemoval=true, since="4.8.0") protected io.undertow.servlet.api.DeploymentInfo deploymentInfo(MicronautServletConfiguration servletConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.The deployment info bean.- Parameters:
servletConfiguration
- The servlet configuration.- Returns:
- The deployment info
-
deploymentInfo
@Singleton @Primary protected io.undertow.servlet.api.DeploymentInfo deploymentInfo(MicronautServletConfiguration servletConfiguration, Collection<jakarta.servlet.ServletContainerInitializer> servletInitializers) The deployment info bean.- Parameters:
servletConfiguration
- The servlet configuration.servletInitializers
- The servlet initializer- Returns:
- The deployment info
-
deploymentInfo(MicronautServletConfiguration, Collection)