Class XMPPContextListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class XMPPContextListener
    extends Object
    implements javax.servlet.ServletContextListener
    An XMPPContextListener starts an XMPPServer when a ServletContext is initialized and stops the xmpp server when the servlet context is destroyed.
    Author:
    evrim ulu, Gaston Dombiak
    • Field Detail

      • XMPP_KEY

        protected String XMPP_KEY
    • Constructor Detail

      • XMPPContextListener

        public XMPPContextListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener