Class StableUniqueStanzaIdManager


  • public final class StableUniqueStanzaIdManager
    extends org.jivesoftware.smack.Manager
    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:
    XEP-0359: Stable and Unique Stanza IDs
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAMESPACE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disable()
      Stop appending origin-id elements to outgoing stanzas and remove the feature from disco.
      void enable()
      Start appending origin-id elements to outgoing stanzas and add the feature to disco.
      static StableUniqueStanzaIdManager getInstanceFor​(org.jivesoftware.smack.XMPPConnection connection)
      Return an instance of the StableUniqueStanzaIdManager for the given connection.
      boolean isEnabled()
      Return true, if we automatically append origin-id elements to outgoing stanzas.
      static void setEnabledByDefault​(boolean enabled)  
      • Methods inherited from class org.jivesoftware.smack.Manager

        connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setEnabledByDefault

        public static void setEnabledByDefault​(boolean enabled)
      • getInstanceFor

        public static StableUniqueStanzaIdManager getInstanceFor​(org.jivesoftware.smack.XMPPConnection connection)
        Return an instance of the StableUniqueStanzaIdManager for the given connection.
        Parameters:
        connection - xmpp-connection
        Returns:
        manager instance for the connection
      • enable

        public void enable()
        Start appending origin-id elements to outgoing stanzas and add the feature to disco.
      • disable

        public void disable()
        Stop appending origin-id elements to outgoing stanzas and remove the feature from disco.
      • isEnabled

        public boolean isEnabled()
        Return true, if we automatically append origin-id elements to outgoing stanzas.
        Returns:
        true if functionality is enabled, otherwise false.