Class WsContextListener
java.lang.Object
org.apache.tomcat.websocket.server.WsContextListener
- All Implemented Interfaces:
EventListener,ServletContextListener
In normal usage, this
ServletContextListener does not need to be explicitly configured as the WsSci
performs all the necessary bootstrap and installs this listener in the ServletContext. If the WsSci
is disabled, this listener must be added manually to every ServletContext that uses WebSocket to bootstrap
the WsServerContainer correctly.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that the servlet context is about to be shut down.voidNotification that the web application initialization process is starting.
-
Constructor Details
-
WsContextListener
public WsContextListener()
-
-
Method Details
-
contextInitialized
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.- Specified by:
contextInitializedin interfaceServletContextListener- Parameters:
sce- Information about the ServletContext that was initialized
-
contextDestroyed
Description copied from interface:javax.servlet.ServletContextListenerNotification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.- Specified by:
contextDestroyedin interfaceServletContextListener- Parameters:
sce- Information about the ServletContext that was destroyed
-