public static class StreamManagement.Enabled extends Object
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'/>
Constructor and Description |
---|
Enabled(String id,
boolean resume) |
Enabled(String id,
boolean resume,
String location,
int max) |
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getId() |
String |
getLocation() |
CharSequence |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public String getLocation()
public CharSequence toXML(String enclosingNamespace)
Element
enclosingNamespace
- the enclosing namespace or null
.public String getElementName()
NamedElement