-
- All Implemented Interfaces:
-
jakarta.servlet.ServletContextListener,java.util.EventListener
public abstract class ServletServer implements ServletContextListenerAdapter 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).
-
-
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)
-
Method Summary
Modifier and Type Method Description UnitcontextInitialized(ServletContextEvent sce)UnitcontextDestroyed(ServletContextEvent sce)-
-
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)
-
-
Method Detail
-
contextInitialized
Unit contextInitialized(ServletContextEvent sce)
-
contextDestroyed
Unit contextDestroyed(ServletContextEvent sce)
-
-
-
-