@Bean(name="urn:xmpp:push:0",
parent=tigase.server.xmppsession.SessionManager.class,
active=false,
exportable=true)
public class PushNotifications
extends tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
implements tigase.xmpp.XMPPProcessorIfc, tigase.xmpp.impl.OfflineMessages.Notifier
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ID |
protected static String |
XMLNS |
| Constructor and Description |
|---|
PushNotifications() |
| Modifier and Type | Method and Description |
|---|---|
protected tigase.xml.Element |
createSettingsElement(tigase.xmpp.jid.JID jid,
String node,
tigase.xml.Element enableElem,
tigase.xml.Element optionsForm) |
protected void |
disableNotifications(tigase.xmpp.XMPPResourceConnection session,
tigase.xmpp.jid.JID jid,
String node) |
protected void |
enableNotifications(tigase.xmpp.XMPPResourceConnection session,
tigase.xmpp.jid.JID jid,
String node,
tigase.xml.Element settings) |
protected void |
enableNotifications(tigase.xmpp.XMPPResourceConnection session,
tigase.xmpp.jid.JID jid,
String node,
tigase.xml.Element enableElem,
tigase.xml.Element optionsForm) |
protected Map<String,tigase.xml.Element> |
getPushServices(tigase.xmpp.XMPPResourceConnection session) |
void |
notifyNewOfflineMessage(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session,
Queue<tigase.server.Packet> results,
Map<String,Object> map) |
protected void |
notifyOfflineMessagesRetrieved(tigase.xmpp.jid.BareJID userJid,
Collection<tigase.xml.Element> pushServices,
Consumer<tigase.server.Packet> results) |
void |
notifyOfflineMessagesRetrieved(tigase.xmpp.XMPPResourceConnection session,
Queue<tigase.server.Packet> results) |
protected tigase.xml.Element |
prepareNotificationPayload(tigase.server.Packet packet,
long msgCount) |
void |
process(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session,
tigase.db.NonAuthUserRepository nonAuthUserRepository,
Queue<tigase.server.Packet> results,
Map<String,Object> map) |
protected void |
sendPushNotification(tigase.xmpp.jid.BareJID userJid,
Collection<tigase.xml.Element> pushServices,
tigase.xml.Element notification,
Consumer<tigase.server.Packet> results) |
id, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypescanHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, isSupporting, supElements, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getStatistics, id, init, isSupporting, supDiscoFeatures, supElementNamePaths, supElements, supNamespaces, supStreamFeatures, supTypescompareToprotected static final String XMLNS
protected static final String ID
public void process(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session,
tigase.db.NonAuthUserRepository nonAuthUserRepository,
Queue<tigase.server.Packet> results,
Map<String,Object> map)
throws tigase.xmpp.XMPPException
process in interface tigase.xmpp.XMPPProcessorIfctigase.xmpp.XMPPExceptionpublic void notifyNewOfflineMessage(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session,
Queue<tigase.server.Packet> results,
Map<String,Object> map)
notifyNewOfflineMessage in interface tigase.xmpp.impl.OfflineMessages.Notifierpublic void notifyOfflineMessagesRetrieved(tigase.xmpp.XMPPResourceConnection session,
Queue<tigase.server.Packet> results)
notifyOfflineMessagesRetrieved in interface tigase.xmpp.impl.OfflineMessages.Notifierprotected void notifyOfflineMessagesRetrieved(tigase.xmpp.jid.BareJID userJid,
Collection<tigase.xml.Element> pushServices,
Consumer<tigase.server.Packet> results)
protected void enableNotifications(tigase.xmpp.XMPPResourceConnection session,
tigase.xmpp.jid.JID jid,
String node,
tigase.xml.Element enableElem,
tigase.xml.Element optionsForm)
throws tigase.xmpp.NotAuthorizedException,
tigase.db.TigaseDBException
tigase.xmpp.NotAuthorizedExceptiontigase.db.TigaseDBExceptionprotected tigase.xml.Element createSettingsElement(tigase.xmpp.jid.JID jid,
String node,
tigase.xml.Element enableElem,
tigase.xml.Element optionsForm)
protected void enableNotifications(tigase.xmpp.XMPPResourceConnection session,
tigase.xmpp.jid.JID jid,
String node,
tigase.xml.Element settings)
throws tigase.xmpp.NotAuthorizedException,
tigase.db.TigaseDBException
tigase.xmpp.NotAuthorizedExceptiontigase.db.TigaseDBExceptionprotected void disableNotifications(tigase.xmpp.XMPPResourceConnection session,
tigase.xmpp.jid.JID jid,
String node)
throws tigase.xmpp.NotAuthorizedException,
tigase.db.TigaseDBException
tigase.xmpp.NotAuthorizedExceptiontigase.db.TigaseDBExceptionprotected Map<String,tigase.xml.Element> getPushServices(tigase.xmpp.XMPPResourceConnection session)
protected tigase.xml.Element prepareNotificationPayload(tigase.server.Packet packet,
long msgCount)
protected void sendPushNotification(tigase.xmpp.jid.BareJID userJid,
Collection<tigase.xml.Element> pushServices,
tigase.xml.Element notification,
Consumer<tigase.server.Packet> results)
Copyright © 2017–2019 Tigase. All rights reserved.