Class 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.
    Use addListener(MUCEventListener) and removeListener(MUCEventListener) to add or remove MUCEventListener.
    Daniel Henninger
    • Constructor Detail

      • MUCEventDispatcher

        public MUCEventDispatcher()
    • Method Detail

      • 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)