public final class HeaderManager extends ExtensionManager implements InfoNode
By default support is disabled, so that service discovery won't reveal the 'http://jabber.org/protocol/shim' feature.
| Modifier and Type | Method and Description |
|---|---|
List<String> |
discoverSupportedHeaders(Jid jid)
Discovers the supported headers of another entity.
|
List<DataForm> |
getExtensions() |
Set<Feature> |
getFeatures() |
Set<Identity> |
getIdentities() |
String |
getNode() |
Set<String> |
getSupportedHeaders()
Gets the supported headers.
|
void |
setEnabled(boolean enabled)
Enables or disables support for the extension.
|
isEnabledpublic 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 List<String> discoverSupportedHeaders(Jid jid) throws XmppException
jid - The JID.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic void setEnabled(boolean enabled)
ExtensionManagersetEnabled in class ExtensionManagerenabled - True, if support for the managed extension should be enabled; otherwise false.ExtensionManager.isEnabled()public Set<Feature> getFeatures()
getFeatures in interface InfoNodepublic Set<Identity> getIdentities()
getIdentities in interface InfoNodepublic List<DataForm> getExtensions()
getExtensions in interface InfoNodeCopyright © 2014–2015 XMPP.rocks. All rights reserved.