public final class PubSubManager extends ExtensionManager
You should first create a pubsub service, which allows you to work with that service. If you don't know the service address, you can discover the pubsub services hosted at your server.
It also allows you to create a Personal Eventing Service, which is a virtual pubsub service, bound to your account.
| Modifier and Type | Method and Description |
|---|---|
PubSubService |
createPersonalEventingService()
Creates a personal eventing service.
|
PubSubService |
createPubSubService(Jid service)
Creates a pubsub service.
|
Collection<PubSubService> |
discoverPubSubServices()
Discovers the publish-subscribe services for the current connection.
|
Collection<PubSubService> |
getPubSubServices()
Deprecated.
|
isEnabled, setEnabled@Deprecated public Collection<PubSubService> getPubSubServices() throws XmppException
discoverPubSubServices()StanzaException - If the server returned a stanza error.NoResponseException - If the server did not respond.XmppExceptionpublic Collection<PubSubService> discoverPubSubServices() throws XmppException
StanzaException - If the server returned a stanza error.NoResponseException - If the server did not respond.XmppExceptionpublic PubSubService createPubSubService(Jid service)
service - The pubsub service address, e.g. Jid.valueOf("pubsub.mydomain")public PubSubService createPersonalEventingService()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.