public final class EntityCapabilitiesManager extends Manager
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 |
|---|---|
InfoNode |
discoverCapabilities(Jid jid)
Discovers the capabilities of another XMPP entity.
|
String |
getNode()
Gets the node.
|
boolean |
isSupported(String feature,
Jid jid)
Checks whether the entity supports the given feature.
|
void |
setNode(String node)
Sets the node.
|
isEnabled, setEnabledpublic String getNode()
setNode(String)public void setNode(String 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 InfoNode discoverCapabilities(Jid jid) throws XmppException
jid - The JID, which should usually be a full JID.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic final boolean isSupported(String feature, Jid jid) throws XmppException
feature - The feature.jid - The JID, which should usually be a full JID.NoResponseException - If the entity did not respond.XmppExceptionCopyright © 2014–2015 XMPP.rocks. All rights reserved.