@Factory public class TomcatFactory extends ServletServerFactory
Tomcat
instance.Modifier | Constructor and Description |
---|---|
protected |
TomcatFactory(io.micronaut.core.io.ResourceResolver resourceResolver,
TomcatConfiguration 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 |
---|---|
TomcatConfiguration |
getServerConfiguration() |
protected org.apache.catalina.connector.Connector |
tomcatConnector() |
protected org.apache.catalina.startup.Tomcat |
tomcatServer(org.apache.catalina.connector.Connector connector,
MicronautServletConfiguration configuration)
The Tomcat server bean.
|
build, build, getApplicationContext, getConfiguredHost, getConfiguredPort, getContextPath, getEnvironment, getSslConfiguration, getStaticResourceConfigurations
protected TomcatFactory(io.micronaut.core.io.ResourceResolver resourceResolver, TomcatConfiguration 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 configspublic TomcatConfiguration getServerConfiguration()
getServerConfiguration
in class ServletServerFactory
@Singleton @Primary protected org.apache.catalina.startup.Tomcat tomcatServer(org.apache.catalina.connector.Connector connector, MicronautServletConfiguration configuration)
connector
- The connectorconfiguration
- The servlet configuration@Singleton @Primary protected org.apache.catalina.connector.Connector tomcatConnector()