Package io.micronaut.servlet.jetty
Class JettyFactory
java.lang.Object
io.micronaut.http.ssl.SslBuilder<SSLContext>
io.micronaut.servlet.engine.server.ServletServerFactory
io.micronaut.servlet.jetty.JettyFactory
Factory for the Jetty server.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJettyFactory
(io.micronaut.core.io.ResourceResolver resourceResolver, JettyConfiguration serverConfiguration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, List<ServletStaticResourceConfiguration> staticResourceConfigurations) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jetty.server.Server
jettyServer
(io.micronaut.context.ApplicationContext applicationContext, MicronautServletConfiguration configuration, JettyConfiguration.JettySslConfiguration jettySslConfiguration) Builds the Jetty server 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
-
Field Details
-
RESOURCE_BASE
- See Also:
-
-
Constructor Details
-
JettyFactory
public JettyFactory(io.micronaut.core.io.ResourceResolver resourceResolver, JettyConfiguration serverConfiguration, io.micronaut.http.ssl.SslConfiguration sslConfiguration, io.micronaut.context.ApplicationContext applicationContext, List<ServletStaticResourceConfiguration> staticResourceConfigurations) Default constructor.- Parameters:
resourceResolver
- The resource resolverserverConfiguration
- The server configsslConfiguration
- The SSL configapplicationContext
- The app contextstaticResourceConfigurations
- The static resource configs
-
-
Method Details
-
jettyServer
@Singleton @Primary protected org.eclipse.jetty.server.Server jettyServer(io.micronaut.context.ApplicationContext applicationContext, MicronautServletConfiguration configuration, JettyConfiguration.JettySslConfiguration jettySslConfiguration) Builds the Jetty server bean.- Parameters:
applicationContext
- This application contextconfiguration
- The servlet configurationjettySslConfiguration
- The Jetty SSL config- Returns:
- The Jetty server bean
-