Class StreamManagement.Enable

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

public static class StreamManagement.Enable extends Object
  • Field Details

  • Constructor Details

    • Enable

      public Enable(boolean resume)
    • Enable

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

    • toXML

      public CharSequence toXML(XmlEnvironment enclosingNamespace)
    • getElementName

      Description copied from interface: NamedElement
      Returns the root element name.
      Returns:
      the element name.
    • maybeAddResumeAttributeTo

      protected void maybeAddResumeAttributeTo(XmlStringBuilder xml)
    • maybeAddMaxAttributeTo

      protected void maybeAddMaxAttributeTo(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()
      Description copied from interface: XmlElement
      Returns the root element XML namespace.
      Specified by:
      getNamespace in interface XmlElement
      Returns:
      the namespace.