Package tigase.xmpp.impl.push
Class AwayPushNotificationsExtension
java.lang.Object
tigase.xmpp.impl.push.AwayPushNotificationsExtension
- All Implemented Interfaces:
Initializable,UnregisterAware,PushNotificationsAware,PushNotificationsExtension
@Bean(name="away",
parent=PushNotifications.class,
active=false)
public class AwayPushNotificationsExtension
extends Object
implements PushNotificationsExtension, Initializable, UnregisterAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod called before bean unregister.Element[]protected Collection<Element> voidMethod will be called, when bean will be created, configured and ready to use.voidvoidprocessEnableElement(Element enableEl, Element settingsEl) voidsetPushNotifications(PushNotifications pushNotifications) 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, prepareNotificationPayload
-
Constructor Details
-
AwayPushNotificationsExtension
public AwayPushNotificationsExtension()
-
-
Method Details
-
getDiscoFeatures
- Specified by:
getDiscoFeaturesin interfacePushNotificationsAware
-
initialize
public void initialize()Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-
presenceChanged
-
processEnableElement
- Specified by:
processEnableElementin interfacePushNotificationsAware
-
setPushNotifications
- Specified by:
setPushNotificationsin interfacePushNotificationsExtension
-
shouldSendNotification
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException - Specified by:
shouldSendNotificationin interfacePushNotificationsExtension- Throws:
XMPPException
-
getPushServicesForAwayNotifications
-