Package 

Class ServletServer

  • All Implemented Interfaces:
    jakarta.servlet.ServletContextListener , java.util.EventListener

    
    public abstract class ServletServer
     implements ServletContextListener
                        

    Adapter to run a router inside a Servlets container. It is not a standard engine as it is not started/stopped (not passed to an HttpServer).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ServletServer(ServerHandler handler, HttpServerSettings settings) Utility constructor for the common case of having a single root handler.
      ServletServer(List<ServerHandler> handlers, HttpServerSettings settings)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit contextInitialized(ServletContextEvent sce)
      Unit contextDestroyed(ServletContextEvent sce)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServletServer

        ServletServer(ServerHandler handler, HttpServerSettings settings)
        Utility constructor for the common case of having a single root handler.
        Parameters:
        handler - The only handler used for this server.
        settings - Settings used by this server.
      • ServletServer

        ServletServer(List<ServerHandler> handlers, HttpServerSettings settings)