Package org.jivesoftware.smack.sm.packet
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the max resumption time in seconds.final Stringbooleanprotected voidmaybeAddMaxAttributeTo(org.jivesoftware.smack.util.XmlStringBuilder xml) protected voidmaybeAddResumeAttributeTo(org.jivesoftware.smack.util.XmlStringBuilder xml) toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
INSTANCE
-
max
protected int maxPreferred 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
-
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
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-