Package tigase.xmpp.impl.push
Class PriorityExtension
java.lang.Object
tigase.xmpp.impl.push.PriorityExtension
- All Implemented Interfaces:
PushNotificationsAware,PushNotificationsExtension
@Bean(name="priority",
parent=PushNotifications.class,
active=true)
public class PriorityExtension
extends Object
implements PushNotificationsExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionElement[]voidprepareNotificationPayload(Element pushServiceSettings, PushNotificationCause cause, Packet packet, long msgCount, Element notification) voidprocessEnableElement(Element enableEl, Element settingsEl) booleanshouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.xmpp.impl.push.PushNotificationsExtension
prepareNotificationPayload, setPushNotifications
-
Constructor Details
-
PriorityExtension
public PriorityExtension()
-
-
Method Details
-
getDiscoFeatures
- Specified by:
getDiscoFeaturesin interfacePushNotificationsAware
-
shouldSendNotification
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException - Specified by:
shouldSendNotificationin interfacePushNotificationsExtension- Throws:
XMPPException
-
processEnableElement
- Specified by:
processEnableElementin interfacePushNotificationsAware
-
prepareNotificationPayload
public void prepareNotificationPayload(Element pushServiceSettings, PushNotificationCause cause, Packet packet, long msgCount, Element notification) - Specified by:
prepareNotificationPayloadin interfacePushNotificationsExtension
-