public final class HeaderManager extends Manager implements InfoNode
Manages support for XEP-0131: Stanza Headers and Internet Metadata.
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 |
|---|---|
AsyncResult<java.util.List<java.lang.String>> |
discoverSupportedHeaders(Jid jid)
Discovers the supported headers of another entity.
|
java.util.List<DataForm> |
getExtensions() |
java.util.Set<java.lang.String> |
getFeatures() |
java.util.Set<Identity> |
getIdentities() |
java.lang.String |
getNode() |
java.util.Set<java.lang.String> |
getSupportedHeaders()
Gets the supported headers.
|
isEnabled, setEnabledpublic java.util.Set<java.lang.String> getSupportedHeaders()
Gets the supported headers.
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 AsyncResult<java.util.List<java.lang.String>> discoverSupportedHeaders(Jid jid)
Discovers the supported headers of another entity.
jid - The JID.public java.util.Set<java.lang.String> getFeatures()
getFeatures in interface InfoNodepublic java.util.Set<Identity> getIdentities()
getIdentities in interface InfoNodepublic java.util.List<DataForm> getExtensions()
getExtensions in interface InfoNodeCopyright © 2014–2019 XMPP.rocks. All rights reserved.