Package org.jivesoftware.smack.sm.packet
Class StreamManagement.Enabled
java.lang.Object
org.jivesoftware.smack.sm.packet.StreamManagement.Enabled
- 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
A Stream Management 'enabled' element.
Here is a full example, all attributes besides 'xmlns' are optional.
<enabled xmlns='urn:xmpp:sm:3'
id='some-long-sm-id'
location='[2001:41D0:1:A49b::1]:9222'
resume='true'/>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()intReturn 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:
-
max
protected int maxPreferred maximum resumption time in seconds (optional). -
resume
protected boolean resume
-
-
Constructor Details
-
Enabled
-
Enabled
-
-
Method Details
-
getId
-
getLocation
-
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
-