Package tigase.xmpp.impl.push
Class EncryptedPushNotificationExtension
java.lang.Object
tigase.xmpp.impl.push.EncryptedPushNotificationExtension
- All Implemented Interfaces:
PushNotificationsAware,PushNotificationsExtension
@Bean(name="encrypted",
parent=PushNotifications.class,
active=true)
public class EncryptedPushNotificationExtension
extends Object
implements PushNotificationsExtension
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontigase.xml.Element[]voidprepareNotificationPayload(tigase.xml.Element pushServiceSettings, Packet packet, long msgCount, tigase.xml.Element notification) voidprocessEnableElement(tigase.xml.Element enableEl, tigase.xml.Element settingsEl) booleanshouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) static StringtrimBodyToSize(int limit, String body) protected static voidvalueToString(Object value, StringBuilder sb) 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
setPushNotifications
-
Field Details
-
XMLNS
- See Also:
-
-
Constructor Details
-
EncryptedPushNotificationExtension
public EncryptedPushNotificationExtension()
-
-
Method Details
-
getDiscoFeatures
public tigase.xml.Element[] getDiscoFeatures()- Specified by:
getDiscoFeaturesin interfacePushNotificationsAware
-
shouldSendNotification
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException - Specified by:
shouldSendNotificationin interfacePushNotificationsExtension- Throws:
XMPPException
-
processEnableElement
public void processEnableElement(tigase.xml.Element enableEl, tigase.xml.Element settingsEl) - Specified by:
processEnableElementin interfacePushNotificationsAware
-
prepareNotificationPayload
public void prepareNotificationPayload(tigase.xml.Element pushServiceSettings, Packet packet, long msgCount, tigase.xml.Element notification) - Specified by:
prepareNotificationPayloadin interfacePushNotificationsExtension
-
trimBodyToSize
-
valueToString
-