Class ServletServerFactory
java.lang.Object
io.micronaut.http.ssl.SslBuilder<SSLContext>
io.micronaut.servlet.engine.server.ServletServerFactory
- Direct Known Subclasses:
JettyFactory
,TomcatFactory
,UndertowFactory
Parent factory class for servlet-based servers.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServletServerFactory
(io.micronaut.core.io.ResourceResolver resourceResolver, io.micronaut.http.server.HttpServerConfiguration serverConfiguration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, List<ServletStaticResourceConfiguration> staticResourceConfigurations) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(io.micronaut.http.ssl.SslConfiguration ssl) build
(io.micronaut.http.ssl.SslConfiguration ssl, io.micronaut.http.HttpVersion httpVersion) io.micronaut.context.ApplicationContext
protected String
protected Integer
protected String
io.micronaut.context.env.Environment
io.micronaut.http.server.HttpServerConfiguration
io.micronaut.http.ssl.SslConfiguration
Methods inherited from class io.micronaut.http.ssl.SslBuilder
getKeyManagerFactory, getKeyStore, getTrustManagerFactory, getTrustStore, load
-
Constructor Details
-
ServletServerFactory
protected ServletServerFactory(io.micronaut.core.io.ResourceResolver resourceResolver, io.micronaut.http.server.HttpServerConfiguration serverConfiguration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, List<ServletStaticResourceConfiguration> staticResourceConfigurations) Default constructor.- Parameters:
resourceResolver
- The resource resolver.serverConfiguration
- The server configurationsslConfiguration
- The SSL configurationapplicationContext
- The app contextstaticResourceConfigurations
- The static resource definitions
-
-
Method Details
-
getStaticResourceConfigurations
- Returns:
- The static resource configurations.
-
getEnvironment
public io.micronaut.context.env.Environment getEnvironment()- Returns:
- The environment
-
getApplicationContext
public io.micronaut.context.ApplicationContext getApplicationContext()- Returns:
- The app context
-
getContextPath
- Returns:
- The context path.
-
getServerConfiguration
public io.micronaut.http.server.HttpServerConfiguration getServerConfiguration()- Returns:
- The server config
-
getSslConfiguration
public io.micronaut.http.ssl.SslConfiguration getSslConfiguration()- Returns:
- The SSL config
-
build
- Specified by:
build
in classio.micronaut.http.ssl.SslBuilder<SSLContext>
-
build
public Optional<SSLContext> build(io.micronaut.http.ssl.SslConfiguration ssl, io.micronaut.http.HttpVersion httpVersion) - Specified by:
build
in classio.micronaut.http.ssl.SslBuilder<SSLContext>
-
getConfiguredHost
- Returns:
- The configured host.
-
getConfiguredPort
- Returns:
- The configured port.
-