Package tigase.xmpp.impl.push
Class JinglePushNotificationsExtension
java.lang.Object
tigase.xmpp.impl.push.JinglePushNotificationsExtension
- All Implemented Interfaces:
PushNotificationsAware
,PushNotificationsExtension
,PushNotificationsFilter
@Bean(name="jingle",
parent=PushNotifications.class,
active=true)
public class JinglePushNotificationsExtension
extends Object
implements PushNotificationsExtension, PushNotificationsFilter, PushNotificationsAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontigase.xml.Element[]
boolean
isSendingNotificationAllowed
(tigase.xmpp.jid.BareJID userJid, XMPPResourceConnection session, tigase.xml.Element pushServiceSettings, Packet packet) void
processEnableElement
(tigase.xml.Element enableEl, tigase.xml.Element settingsEl) boolean
shouldSendNotification
(Packet packet, tigase.xmpp.jid.BareJID userJid, XMPPResourceConnection session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.xmpp.impl.push.PushNotificationsExtension
prepareNotificationPayload, setPushNotifications
-
Constructor Details
-
JinglePushNotificationsExtension
public JinglePushNotificationsExtension()
-
-
Method Details
-
getDiscoFeatures
public tigase.xml.Element[] getDiscoFeatures()- Specified by:
getDiscoFeatures
in interfacePushNotificationsAware
-
processEnableElement
public void processEnableElement(tigase.xml.Element enableEl, tigase.xml.Element settingsEl) - Specified by:
processEnableElement
in interfacePushNotificationsAware
-
shouldSendNotification
public boolean shouldSendNotification(Packet packet, tigase.xmpp.jid.BareJID userJid, XMPPResourceConnection session) throws XMPPException - Specified by:
shouldSendNotification
in interfacePushNotificationsExtension
- Throws:
XMPPException
-
isSendingNotificationAllowed
public boolean isSendingNotificationAllowed(tigase.xmpp.jid.BareJID userJid, XMPPResourceConnection session, tigase.xml.Element pushServiceSettings, Packet packet) - Specified by:
isSendingNotificationAllowed
in interfacePushNotificationsFilter
-