Package org.jivesoftware.openfire
Class XMPPContextListener
- java.lang.Object
-
- org.jivesoftware.openfire.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
-
-
Constructor Summary
Constructors Constructor Description XMPPContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent event)
void
contextInitialized(javax.servlet.ServletContextEvent event)
-
-
-
Field Detail
-
XMPP_KEY
protected String XMPP_KEY
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-