public final class PubSubService extends Object
E.g. it lets you get all your subscriptions on the service, let's you work with nodes (e.g. subscribe to nodes) or let's you discover the features provided by the remote service.
To work with pubsub nodes, create a local node instance, which can be used to work the remote node (e.g. subscribe to the node).
| Modifier and Type | Method and Description |
|---|---|
Collection<PubSubFeature> |
discoverFeatures()
Discovers the features, which are supported by the pubsub service.
|
List<PubSubNode> |
discoverNodes()
Discovers the first-level nodes of this pubsub service.
|
Jid |
getAddress()
Gets the service address.
|
Collection<PubSubFeature> |
getFeatures()
Deprecated.
|
String |
getName()
Gets the name of this service.
|
PubSubNode |
getNode(String node)
Deprecated.
Use
node(String) instead. |
List<PubSubNode> |
getNodes()
Deprecated.
Use
discoverNodes() |
PubSubNode |
node(String node)
Creates a pubsub node locally, which can be used to work with a node at the pubsub service.
|
String |
toString()
Returns the service address.
|
@Deprecated public Collection<PubSubFeature> getFeatures() throws XmppException
discoverFeatures()StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic Collection<PubSubFeature> discoverFeatures() throws XmppException
StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppException@Deprecated public List<PubSubNode> getNodes() throws XmppException
discoverNodes()StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic List<PubSubNode> discoverNodes() throws XmppException
StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppException@Deprecated public PubSubNode getNode(String node)
node(String) instead.node - The node.public PubSubNode node(String node)
node - The node.public Jid getAddress()
public String toString()
public String getName()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.