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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.int
Return the max resumption time in seconds.final String
Returns the root element XML namespace.boolean
protected void
protected void
toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:NamedElement
Returns 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:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-