@Bean(name="publish-notification",
parent=PushNotificationsComponent.class,
active=true)
public class PublishNotificationModule
extends tigase.component.modules.AbstractModule
| Constructor and Description |
|---|
PublishNotificationModule() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getFeatures() |
tigase.criteria.Criteria |
getModuleCriteria() |
protected IPushProvider |
getProvider(IPushSettings.IDevice device) |
protected tigase.xmpp.jid.JID |
parseJID(tigase.xml.Element elem,
String field) |
protected Long |
parseLong(tigase.xml.Element elem,
String field) |
protected INotification |
parseNotification(tigase.xmpp.jid.BareJID userJid,
tigase.xml.Element notificationElem) |
void |
process(tigase.server.Packet packet) |
protected void |
pushNotification(tigase.xmpp.jid.BareJID serviceJid,
tigase.xmpp.jid.BareJID userJid,
String node,
tigase.xml.Element notificationElem) |
void |
setPushProviders(List<IPushProvider> pushProviders) |
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writepublic String[] getFeatures()
public tigase.criteria.Criteria getModuleCriteria()
public void process(tigase.server.Packet packet)
throws tigase.component.exceptions.ComponentException,
tigase.util.stringprep.TigaseStringprepException
tigase.component.exceptions.ComponentExceptiontigase.util.stringprep.TigaseStringprepExceptionpublic void setPushProviders(List<IPushProvider> pushProviders)
protected IPushProvider getProvider(IPushSettings.IDevice device)
protected void pushNotification(tigase.xmpp.jid.BareJID serviceJid,
tigase.xmpp.jid.BareJID userJid,
String node,
tigase.xml.Element notificationElem)
throws tigase.component.exceptions.ComponentException,
tigase.util.stringprep.TigaseStringprepException,
tigase.component.exceptions.RepositoryException
tigase.component.exceptions.ComponentExceptiontigase.util.stringprep.TigaseStringprepExceptiontigase.component.exceptions.RepositoryExceptionprotected INotification parseNotification(tigase.xmpp.jid.BareJID userJid, tigase.xml.Element notificationElem) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
tigase.component.exceptions.ComponentExceptiontigase.util.stringprep.TigaseStringprepExceptionprotected tigase.xmpp.jid.JID parseJID(tigase.xml.Element elem,
String field)
throws tigase.component.exceptions.ComponentException,
tigase.util.stringprep.TigaseStringprepException
tigase.component.exceptions.ComponentExceptiontigase.util.stringprep.TigaseStringprepExceptionCopyright © 2017–2019 Tigase. All rights reserved.