public final class HeaderManager extends Manager 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 |
|---|---|
AsyncResult<List<String>> |
discoverSupportedHeaders(rocks.xmpp.addr.Jid jid)
Discovers the supported headers of another entity.
|
List<DataForm> |
getExtensions() |
Set<String> |
getFeatures() |
Set<Identity> |
getIdentities() |
String |
getNode() |
Set<String> |
getSupportedHeaders()
Gets the supported headers.
|
isEnabled, setEnabledpublic 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 AsyncResult<List<String>> discoverSupportedHeaders(rocks.xmpp.addr.Jid jid)
jid - The JID.public Set<String> getFeatures()
getFeatures in interface InfoNodepublic Set<Identity> getIdentities()
getIdentities in interface InfoNodepublic List<DataForm> getExtensions()
getExtensions in interface InfoNodeCopyright © 2014–2016 XMPP.rocks. All rights reserved.