Class WsContextListener
- java.lang.Object
- 
- org.apache.tomcat.websocket.server.WsContextListener
 
- 
- All Implemented Interfaces:
- java.util.EventListener,- ServletContextListener
 
 public class WsContextListener extends java.lang.Object implements ServletContextListener In normal usage, thisServletContextListenerdoes not need to be explicitly configured as theWsSciperforms all the necessary bootstrap and installs this listener in theServletContext. If theWsSciis disabled, this listener must be added manually to everyServletContextthat uses WebSocket to bootstrap theWsServerContainercorrectly.
- 
- 
Constructor SummaryConstructors Constructor Description WsContextListener()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(ServletContextEvent sce)Notification that the servlet context is about to be shut down.voidcontextInitialized(ServletContextEvent sce)Notification that the web application initialization process is starting.
 
- 
- 
- 
Method Detail- 
contextInitializedpublic void contextInitialized(ServletContextEvent sce) Description copied from interface:javax.servlet.ServletContextListenerNotification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized. The default implementation is a NO-OP.- Specified by:
- contextInitializedin interface- ServletContextListener
- Parameters:
- sce- Information about the ServletContext that was initialized
 
 - 
contextDestroyedpublic void contextDestroyed(ServletContextEvent sce) Description copied from interface:javax.servlet.ServletContextListenerNotification that the servlet context is about to be shut down. All servlets and filters have been destroyed before any ServletContextListeners are notified of context destruction. The default implementation is a NO-OP.- Specified by:
- contextDestroyedin interface- ServletContextListener
- Parameters:
- sce- Information about the ServletContext that was destroyed
 
 
- 
 
-