@Bean(name="away", parent=PushNotifications.class, active=false) public class AwayPushNotificationsExtension extends Object implements PushNotificationsExtension, Initializable, UnregisterAware
| Constructor and Description |
|---|
AwayPushNotificationsExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeUnregister()
Method called before bean unregister.
|
Element[] |
getDiscoFeatures() |
protected Collection<Element> |
getPushServicesForAwayNotifications(XMPPResourceConnection session) |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
void |
presenceChanged(UserPresenceChangedEvent event) |
void |
processEnableElement(Element enableEl,
Element settingsEl) |
void |
setPushNotifications(PushNotifications pushNotifications) |
boolean |
shouldSendNotification(Packet packet,
BareJID userJid,
XMPPResourceConnection session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareNotificationPayloadpublic Element[] getDiscoFeatures()
getDiscoFeatures in interface PushNotificationsAwarepublic void initialize()
Initializableinitialize in interface Initializablepublic void beforeUnregister()
UnregisterAwarebeforeUnregister in interface UnregisterAware@HandleEvent(filter=local) public void presenceChanged(UserPresenceChangedEvent event)
public void processEnableElement(Element enableEl, Element settingsEl)
processEnableElement in interface PushNotificationsAwarepublic void setPushNotifications(PushNotifications pushNotifications)
setPushNotifications in interface PushNotificationsExtensionpublic boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException
shouldSendNotification in interface PushNotificationsExtensionXMPPExceptionprotected Collection<Element> getPushServicesForAwayNotifications(XMPPResourceConnection session)
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.