org.opennms.netmgt.notifd
Class XMPPNotificationManager

java.lang.Object
  extended by org.opennms.netmgt.notifd.XMPPNotificationManager

public class XMPPNotificationManager
extends Object

Singleton class used to send messages to an XMPP Server. Used by XMPPNotificationStragetgy and XMPPGroupNotificationStrategy

Author:
Jonathan Sartin

Constructor Summary
protected XMPPNotificationManager()
           
 
Method Summary
static XMPPNotificationManager getInstance()
          get an instance of the XMPPNotificationManager
 boolean isLoggedIn()
          Check if manager is logged in to xmpp server.
protected  Category log()
           
 boolean sendGroupChat(String xmppChatRoom, String xmppMessage)
          send an xmpp message to a specified Chat Room.
 boolean sendMessage(String xmppTo, String xmppMessage)
          send an xmpp message to a specified recipient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMPPNotificationManager

protected XMPPNotificationManager()
Method Detail

getInstance

public static XMPPNotificationManager getInstance()
get an instance of the XMPPNotificationManager

Returns:
instance of XMPPNotificationManager

isLoggedIn

public boolean isLoggedIn()
Check if manager is logged in to xmpp server.

Returns:
true if logged in, false otherwise

sendMessage

public boolean sendMessage(String xmppTo,
                           String xmppMessage)
send an xmpp message to a specified recipient.

Parameters:
xmppTo - recipient of the xmpp message
xmppMessage - text to be sent in the body of the message
Returns:
true if message is sent, false otherwise

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

log

protected Category log()


Copyright ? 2008. All Rights Reserved.