public final class HeaderManager extends ExtensionManager implements rocks.xmpp.extensions.disco.model.info.InfoNode
By default support is disabled, so that service discovery won't reveal the 'http://jabber.org/protocol/shim' feature.
features, xmppSession| Modifier and Type | Method and Description |
|---|---|
List<String> |
discoverSupportedHeaders(rocks.xmpp.core.Jid jid)
Discovers the supported headers of another entity.
|
List<rocks.xmpp.extensions.data.model.DataForm> |
getExtensions() |
Set<rocks.xmpp.extensions.disco.model.info.Feature> |
getFeatures() |
Set<rocks.xmpp.extensions.disco.model.info.Identity> |
getIdentities() |
String |
getNode() |
Set<String> |
getSupportedHeaders()
Gets the supported headers.
|
void |
setEnabled(boolean enabled) |
public Set<String> getSupportedHeaders()
If you want to advertise support for a specific header, add it to this set. Service discovery requests to the 'header' node will then reveal supported headers.
public String getNode()
getNode in interface rocks.xmpp.extensions.disco.model.info.InfoNodepublic List<String> discoverSupportedHeaders(rocks.xmpp.core.Jid jid) throws rocks.xmpp.core.XmppException
jid - The 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 void setEnabled(boolean enabled)
setEnabled in class ExtensionManagerpublic Set<rocks.xmpp.extensions.disco.model.info.Feature> getFeatures()
getFeatures in interface rocks.xmpp.extensions.disco.model.info.InfoNodepublic Set<rocks.xmpp.extensions.disco.model.info.Identity> getIdentities()
getIdentities in interface rocks.xmpp.extensions.disco.model.info.InfoNodepublic List<rocks.xmpp.extensions.data.model.DataForm> getExtensions()
getExtensions in interface rocks.xmpp.extensions.disco.model.info.InfoNodeCopyright © 2014 XMPP.rocks. All rights reserved.