Package org.jivesoftware.smack.sm.packet
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.intReturn the max resumption time in seconds.final StringReturns the root element XML namespace.booleanprotected voidprotected voidtoXML(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.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
-
Enable
-
-
Method Details
-
toXML
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Returns:
- the element name.
-
maybeAddResumeAttributeTo
-
maybeAddMaxAttributeTo
-
isResumeSet
public boolean isResumeSet() -
getMaxResumptionTime
public int getMaxResumptionTime()Return the max resumption time in seconds.- Returns:
- the max resumption time in seconds
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-