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()
Gets the service discovery extensions as described in XEP-0128: Service Discovery Extensions
|
java.util.Set<java.lang.String> |
getFeatures()
Gets the features.
|
java.util.Set<Identity> |
getIdentities()
Gets the identities.
|
java.lang.String |
getNode()
Gets the node name.
|
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 java.lang.String getNode()
InfoNodeGets the node name.
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()
InfoNodeGets the features.
getFeatures in interface InfoNodepublic java.util.Set<Identity> getIdentities()
InfoNodeGets the identities.
getIdentities in interface InfoNodepublic java.util.List<DataForm> getExtensions()
InfoNodeGets the service discovery extensions as described in XEP-0128: Service Discovery Extensions
getExtensions in interface InfoNodeCopyright © 2014–2019 XMPP.rocks. All rights reserved.