public final class PubSubManager extends ExtensionManager
features, xmppSession| Modifier and Type | Method and Description |
|---|---|
void |
addPubSubListener(PubSubListener pubSubListener)
Adds a pubsub listener, which allows to listen for pubsub notifications.
|
PubSubService |
createPersonalEventingService()
Creates a personal eventing service.
|
PubSubService |
createPubSubService(rocks.xmpp.core.Jid service)
Creates a pubsub service.
|
Collection<PubSubService> |
getPubSubServices()
Discovers the publish-subscribe services for the current connection.
|
void |
removePubSubListener(PubSubListener pubSubListener)
Removes a previously added pubsub listener.
|
setEnabledpublic Collection<PubSubService> getPubSubServices() throws rocks.xmpp.core.XmppException
rocks.xmpp.core.stanza.model.StanzaException - If the server returned a stanza error.NoResponseException - If the server did not respond.rocks.xmpp.core.XmppExceptionpublic PubSubService createPubSubService(rocks.xmpp.core.Jid service)
service - The pubsub service address.public PubSubService createPersonalEventingService()
public void addPubSubListener(PubSubListener pubSubListener)
pubSubListener - The listener.removePubSubListener(PubSubListener)public void removePubSubListener(PubSubListener pubSubListener)
pubSubListener - The listener.addPubSubListener(PubSubListener)Copyright © 2014 XMPP.rocks. All rights reserved.