Class StreamManagement.Enable

java.lang.Object
org.jivesoftware.smack.sm.packet.StreamManagement.Enable
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.Nonza, org.jivesoftware.smack.packet.TopLevelStreamElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement
Enclosing class:
StreamManagement

public static class StreamManagement.Enable extends Object
  • Field Details

    • ELEMENT

      public static final String ELEMENT
      See Also:
    • INSTANCE

      public static final StreamManagement.Enable INSTANCE
    • max

      protected int max
      Preferred maximum resumption time in seconds (optional).
    • resume

      protected boolean resume
  • Constructor Details

    • Enable

      public Enable(boolean resume)
    • Enable

      public Enable(boolean resume, int max)
  • Method Details

    • toXML

      public CharSequence toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
    • getElementName

      public String getElementName()
    • maybeAddResumeAttributeTo

      protected void maybeAddResumeAttributeTo(org.jivesoftware.smack.util.XmlStringBuilder xml)
    • maybeAddMaxAttributeTo

      protected void maybeAddMaxAttributeTo(org.jivesoftware.smack.util.XmlStringBuilder xml)
    • isResumeSet

      public boolean isResumeSet()
    • getMaxResumptionTime

      public int getMaxResumptionTime()
      Return the max resumption time in seconds.
      Returns:
      the max resumption time in seconds
    • getNamespace

      public final String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement