Class ServletServerFactory

java.lang.Object
io.micronaut.http.ssl.SslBuilder<SSLContext>
io.micronaut.servlet.engine.server.ServletServerFactory

@Deprecated(forRemoval=true, since="5.2.0") public abstract class ServletServerFactory extends io.micronaut.http.ssl.SslBuilder<SSLContext>
Deprecated, for removal: This API element is subject to removal in a future version.
Parent factory class for servlet-based servers.
Since:
1.0.0
Author:
graemerocher
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.micronaut.http.ssl.SslConfiguration ssl)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    build(io.micronaut.http.ssl.SslConfiguration ssl, io.micronaut.http.HttpVersion httpVersion)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    io.micronaut.context.ApplicationContext
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Integer
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    io.micronaut.context.env.Environment
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    io.micronaut.http.server.HttpServerConfiguration
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    io.micronaut.http.ssl.SslConfiguration
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class io.micronaut.http.ssl.SslBuilder

    getKeyManagerFactory, getKeyStore, getTrustManagerFactory, getTrustManagerFactory, getTrustStore, load

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      resourceResolver - The resource resolver.
      serverConfiguration - The server configuration
      sslConfiguration - The SSL configuration
      applicationContext - The app context
      staticResourceConfigurations - The static resource definitions
  • Method Details

    • getStaticResourceConfigurations

      public List<ServletStaticResourceConfiguration> getStaticResourceConfigurations()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The static resource configurations.
    • getEnvironment

      public io.micronaut.context.env.Environment getEnvironment()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The environment
    • getApplicationContext

      public io.micronaut.context.ApplicationContext getApplicationContext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The app context
    • getContextPath

      protected String getContextPath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The context path.
    • getServerConfiguration

      public io.micronaut.http.server.HttpServerConfiguration getServerConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The server config
    • getSslConfiguration

      public io.micronaut.http.ssl.SslConfiguration getSslConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The SSL config
    • build

      public Optional<SSLContext> build(io.micronaut.http.ssl.SslConfiguration ssl)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      build in class io.micronaut.http.ssl.SslBuilder<SSLContext>
    • build

      public Optional<SSLContext> build(io.micronaut.http.ssl.SslConfiguration ssl, io.micronaut.http.HttpVersion httpVersion)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      build in class io.micronaut.http.ssl.SslBuilder<SSLContext>
    • getConfiguredHost

      protected String getConfiguredHost()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The configured host.
    • getConfiguredPort

      protected Integer getConfiguredPort()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The configured port.