Package org.opennms.netmgt.notifd
Class XMPPNotificationManager
- java.lang.Object
-
- org.opennms.netmgt.notifd.XMPPNotificationManager
-
public class XMPPNotificationManager extends java.lang.ObjectSingleton class used to send messages to an XMPP Server. Used by XMPPNotificationStragetgy and XMPPGroupNotificationStrategy- Version:
- $Id: $
- Author:
- Jonathan Sartin, Benjamin Reed
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMPPNotificationManager()Constructor for XMPPNotificationManager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XMPPNotificationManagergetInstance()get an instance of the XMPPNotificationManagerbooleanisLoggedIn()isLoggedInbooleansendGroupChat(java.lang.String xmppChatRoom, java.lang.String xmppMessage)send an xmpp message to a specified Chat Room.booleansendMessage(java.lang.String xmppTo, java.lang.String xmppMessage)sendMessage
-
-
-
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(java.lang.String xmppTo, java.lang.String xmppMessage)sendMessage
- Parameters:
xmppTo- aStringobject.xmppMessage- aStringobject.- Returns:
- a boolean.
-
sendGroupChat
public boolean sendGroupChat(java.lang.String xmppChatRoom, java.lang.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
-
-