Class AbstractServletServer<T>

java.lang.Object
io.micronaut.servlet.engine.server.AbstractServletServer<T>
Type Parameters:
T - The server type
All Implemented Interfaces:
io.micronaut.context.ApplicationContextLifeCycle<io.micronaut.runtime.server.EmbeddedServer>, io.micronaut.context.ApplicationContextProvider, io.micronaut.context.LifeCycle, io.micronaut.runtime.EmbeddedApplication<io.micronaut.runtime.server.EmbeddedServer>, io.micronaut.runtime.server.EmbeddedServer, Closeable, AutoCloseable

@Deprecated(forRemoval=true, since="5.2.0") public abstract class AbstractServletServer<T> extends Object implements io.micronaut.runtime.server.EmbeddedServer
Deprecated, for removal: This API element is subject to removal in a future version.
Abstract base class for servlet embedded servers.
Since:
1.0.0
Author:
graemerocher
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractServletServer(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, T server)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    final io.micronaut.runtime.ApplicationConfiguration
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final io.micronaut.context.ApplicationContext
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final T
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final io.micronaut.runtime.server.EmbeddedServer
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected abstract void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Start the server.
    final io.micronaut.runtime.server.EmbeddedServer
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected abstract void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Stop the server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.runtime.EmbeddedApplication

    getEnvironment, isForceExit

    Methods inherited from interface io.micronaut.runtime.server.EmbeddedServer

    getContextURI, getHost, getPort, getScheme, getURI, getURL, isKeepAlive, isServer

    Methods inherited from interface io.micronaut.context.LifeCycle

    close, isRunning, refresh
  • Constructor Details

    • AbstractServletServer

      protected AbstractServletServer(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, T server)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      applicationContext - The application context
      applicationConfiguration - The application configuration
      server - The server object
  • Method Details

    • getServer

      public final T getServer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The server object.
    • getApplicationContext

      public final io.micronaut.context.ApplicationContext getApplicationContext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getApplicationContext in interface io.micronaut.context.ApplicationContextProvider
      Specified by:
      getApplicationContext in interface io.micronaut.runtime.EmbeddedApplication<T>
    • getApplicationConfiguration

      public final io.micronaut.runtime.ApplicationConfiguration getApplicationConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getApplicationConfiguration in interface io.micronaut.runtime.EmbeddedApplication<T>
    • start

      public final io.micronaut.runtime.server.EmbeddedServer start()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      start in interface io.micronaut.context.ApplicationContextLifeCycle<T>
      Specified by:
      start in interface io.micronaut.context.LifeCycle<T>
    • stop

      public final io.micronaut.runtime.server.EmbeddedServer stop()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      stop in interface io.micronaut.context.ApplicationContextLifeCycle<T>
      Specified by:
      stop in interface io.micronaut.context.LifeCycle<T>
    • startServer

      protected abstract void startServer() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Start the server.
      Throws:
      Exception - when an error occurred starting the server
    • stopServer

      protected abstract void stopServer() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Stop the server.
      Throws:
      Exception - when an error occurred stopping the server