Package org.jivesoftware.smackx.sid
Class StableUniqueStanzaIdManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.sid.StableUniqueStanzaIdManager
Manager class for Stable and Unique Stanza IDs.
In order to start automatically appending origin ids to outgoing messages, use
enable().
This will announce support via the ServiceDiscoveryManager. If you want to stop appending origin-ids
and de-announce support, call disable().- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Stop appending origin-id elements to outgoing stanzas and remove the feature from disco.voidenable()Start appending origin-id elements to outgoing stanzas and add the feature to disco.static StableUniqueStanzaIdManagergetInstanceFor(XMPPConnection connection) Return an instance of the StableUniqueStanzaIdManager for the given connection.booleanReturn true, if we automatically append origin-id elements to outgoing stanzas.static voidsetEnabledByDefault(boolean enabled) Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Field Details
-
NAMESPACE
- See Also:
-
-
Method Details
-
setEnabledByDefault
-
getInstanceFor
Return an instance of the StableUniqueStanzaIdManager for the given connection.- Parameters:
connection- xmpp-connection- Returns:
- manager instance for the connection
-
enable
Start appending origin-id elements to outgoing stanzas and add the feature to disco. -
disable
Stop appending origin-id elements to outgoing stanzas and remove the feature from disco. -
isEnabled
Return true, if we automatically append origin-id elements to outgoing stanzas.- Returns:
- true if functionality is enabled, otherwise false.
-