public final class EntityCapabilitiesManager extends Manager
This class manages XEP-0115: Entity Capabilities.
If this manager is enabled (default), entity capabilities are automatically included in every presence notification being sent.
You can check for an entity’s capabilities by using discoverCapabilities(Jid), which will either return cached capabilities or ask the entity.
isSupported(String, Jid). This class is thread-safe.
| Modifier and Type | Method and Description |
|---|---|
AsyncResult<InfoNode> |
discoverCapabilities(Jid jid)
Discovers the capabilities of another XMPP entity.
|
java.lang.String |
getNode()
Gets the node.
|
AsyncResult<java.lang.Boolean> |
isSupported(java.lang.String feature,
Jid jid)
Checks whether the entity supports the given feature.
|
void |
setNode(java.lang.String node)
Sets the node.
|
isEnabled, setEnabledpublic java.lang.String getNode()
Gets the node. If no node was set, a default node is returned.
setNode(String)public void setNode(java.lang.String node)
Sets the node.
It is RECOMMENDED for the value of the ‘node’ attribute to be an HTTP URL at which a user could find further information about the software product, such as “http://psi-im.org” for the Psi client;
node - The node.getNode()public final AsyncResult<InfoNode> discoverCapabilities(Jid jid)
Discovers the capabilities of another XMPP entity.
jid - The JID, which should usually be a full JID.public final AsyncResult<java.lang.Boolean> isSupported(java.lang.String feature, Jid jid)
Checks whether the entity supports the given feature. If the features are already known and cached
feature - The feature.jid - The JID, which should usually be a full JID.Copyright © 2014–2019 XMPP.rocks. All rights reserved.