Class XMPPNotificationManager


  • public class XMPPNotificationManager
    extends Object
    Singleton class used to send messages to an XMPP Server. Used by XMPPNotificationStragetgy and XMPPGroupNotificationStrategy
    Version:
    $Id: $
    Author:
    Jonathan Sartin, Benjamin Reed
    • Constructor Detail

      • XMPPNotificationManager

        protected XMPPNotificationManager()

        Constructor for XMPPNotificationManager.

    • Method Detail

      • getInstance

        public static XMPPNotificationManager getInstance()
        get an instance of the XMPPNotificationManager
        Returns:
        instance of XMPPNotificationManager
      • isLoggedIn

        public boolean isLoggedIn()

        isLoggedIn

        Returns:
        a boolean.
      • sendMessage

        public boolean sendMessage​(String xmppTo,
                                   String xmppMessage)

        sendMessage

        Parameters:
        xmppTo - a String object.
        xmppMessage - a String object.
        Returns:
        a boolean.
      • sendGroupChat

        public boolean sendGroupChat​(String xmppChatRoom,
                                     String xmppMessage)
        send an xmpp message to a specified Chat Room.
        Parameters:
        xmppChatRoom - room to send message to.
        xmppMessage - text to be sent in the body of the message
        Returns:
        true if message is sent, false otherwise