@Bean(name="priority", parent=PushNotifications.class, active=true) public class PriorityExtension extends Object implements PushNotificationsExtension
Constructor and Description |
---|
PriorityExtension() |
Modifier and Type | Method and Description |
---|---|
Element[] |
getDiscoFeatures() |
void |
prepareNotificationPayload(Element pushServiceSettings,
Packet packet,
long msgCount,
Element notification) |
void |
processEnableElement(Element enableEl,
Element settingsEl) |
boolean |
shouldSendNotification(Packet packet,
BareJID userJid,
XMPPResourceConnection session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPushNotifications
public Element[] getDiscoFeatures()
getDiscoFeatures
in interface PushNotificationsAware
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException
shouldSendNotification
in interface PushNotificationsExtension
XMPPException
public void processEnableElement(Element enableEl, Element settingsEl)
processEnableElement
in interface PushNotificationsAware
public void prepareNotificationPayload(Element pushServiceSettings, Packet packet, long msgCount, Element notification)
prepareNotificationPayload
in interface PushNotificationsExtension
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.