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, setEnabled
public 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()
InfoNode
Gets 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()
InfoNode
Gets the features.
getFeatures
in interface InfoNode
public java.util.Set<Identity> getIdentities()
InfoNode
Gets the identities.
getIdentities
in interface InfoNode
public java.util.List<DataForm> getExtensions()
InfoNode
Gets the service discovery extensions as described in XEP-0128: Service Discovery Extensions
getExtensions
in interface InfoNode
Copyright © 2014–2019 XMPP.rocks. All rights reserved.