Package org.jivesoftware.openfire.muc
Class MUCEventDispatcher
- java.lang.Object
-
- org.jivesoftware.openfire.muc.MUCEventDispatcher
-
public class MUCEventDispatcher extends Object
Dispatches MUC events. The following events are supported:- occupantJoined --> Someone joined a room.
- occupantLeft --> Someone left a room.
- nicknameChanged --> A nickname was changed in a room.
- messageReceived --> A message was received in a room.
- roomCreated --> A room was created.
- roomDestroyed --> A room was destroyed.
addListener(MUCEventListener)
andremoveListener(MUCEventListener)
to add or removeMUCEventListener
.- Author:
- Daniel Henninger
-
-
Constructor Summary
Constructors Constructor Description MUCEventDispatcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addListener(MUCEventListener listener)
static void
messageReceived(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname, org.xmpp.packet.Message message)
static void
nicknameChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String oldNickname, String newNickname)
static void
occupantJoined(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
static void
occupantLeft(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
static void
privateMessageRecieved(org.xmpp.packet.JID toJID, org.xmpp.packet.JID fromJID, org.xmpp.packet.Message message)
static void
removeListener(MUCEventListener listener)
static void
roomCreated(org.xmpp.packet.JID roomJID)
static void
roomDestroyed(org.xmpp.packet.JID roomJID)
static void
roomSubjectChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String newSubject)
-
-
-
Method Detail
-
addListener
public static void addListener(MUCEventListener listener)
-
removeListener
public static void removeListener(MUCEventListener listener)
-
occupantJoined
public static void occupantJoined(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
-
occupantLeft
public static void occupantLeft(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
-
nicknameChanged
public static void nicknameChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String oldNickname, String newNickname)
-
messageReceived
public static void messageReceived(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname, org.xmpp.packet.Message message)
-
privateMessageRecieved
public static void privateMessageRecieved(org.xmpp.packet.JID toJID, org.xmpp.packet.JID fromJID, org.xmpp.packet.Message message)
-
roomCreated
public static void roomCreated(org.xmpp.packet.JID roomJID)
-
roomDestroyed
public static void roomDestroyed(org.xmpp.packet.JID roomJID)
-
roomSubjectChanged
public static void roomSubjectChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String newSubject)
-
-