public final class EntityCapabilitiesManager extends ExtensionManager
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 getCapabilities(rocks.xmpp.core.Jid), which will either return cached capabilities or ask the entity.
isSupported(String, rocks.xmpp.core.Jid).features, xmppSession| Modifier and Type | Method and Description |
|---|---|
rocks.xmpp.extensions.disco.model.info.InfoNode |
getCapabilities(rocks.xmpp.core.Jid jid)
Gets the capabilities of another XMPP entity.
|
String |
getNode()
Gets the node.
|
boolean |
isSupported(String feature,
rocks.xmpp.core.Jid jid)
Checks whether the entity supports the given feature.
|
void |
setNode(String node)
Sets the node.
|
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 rocks.xmpp.extensions.disco.model.info.InfoNode getCapabilities(rocks.xmpp.core.Jid jid) throws rocks.xmpp.core.XmppException
jid - The JID, which should usually be a full JID.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic boolean isSupported(String feature, rocks.xmpp.core.Jid jid) throws rocks.xmpp.core.XmppException
feature - The feature.jid - The JID, which should usually be a full JID.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionCopyright © 2014 XMPP.rocks. All rights reserved.