Package rocks.xmpp.extensions.pubsub
Class PubSubManager
- java.lang.Object
-
- rocks.xmpp.core.session.Manager
-
- rocks.xmpp.extensions.pubsub.PubSubManager
-
public final class PubSubManager extends Manager
This class is the entry point to work with pubsub.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 discoverPubSubServices() 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubSubService
createPersonalEventingService()
Creates a personal eventing service.PubSubService
createPubSubService(Jid service)
Creates a pubsub service.AsyncResult<List<PubSubService>>
discoverPubSubServices()
Discovers the publish-subscribe services for the current connection.-
Methods inherited from class rocks.xmpp.core.session.Manager
isEnabled, setEnabled
-
-
-
-
Method Detail
-
discoverPubSubServices
public AsyncResult<List<PubSubService>> discoverPubSubServices()
Discovers the publish-subscribe services for the current connection.- Returns:
- The async result with the list of publish-subscribe services.
-
createPubSubService
public PubSubService createPubSubService(Jid service)
Creates a pubsub service.- Parameters:
service
- The pubsub service address, e.g.Jid.of("pubsub.mydomain")
- Returns:
- The pubsub service.
-
createPersonalEventingService
public PubSubService createPersonalEventingService()
Creates a personal eventing service.- Returns:
- The personal eventing service.
- See Also:
- XEP-0163: Personal Eventing Protocol
-
-