Package org.jivesoftware.smack.sm.packet
Class StreamManagement.Enabled
java.lang.Object
org.jivesoftware.smack.sm.packet.StreamManagement.Enabled
- All Implemented Interfaces:
Element
,NamedElement
,Nonza
,TopLevelStreamElement
,XmlElement
,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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.getId()
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:
-
max
protected int maxPreferred maximum resumption time in seconds (optional). -
resume
protected boolean resume
-
-
Constructor Details
-
Enabled
-
Enabled
-
-
Method Details
-
getId
-
getLocation
-
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.
-