public class CapsExtension extends Object implements ExtensionElement
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
CapsExtension(String node,
String version,
String hash) |
Modifier and Type | Method and Description |
---|---|
static CapsExtension |
from(Stanza stanza) |
String |
getElementName()
Returns the root element name.
|
String |
getHash() |
String |
getNamespace()
Returns the root element XML namespace.
|
String |
getNode() |
String |
getVer() |
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String NAMESPACE
public static final String ELEMENT
public CapsExtension(String node, String version, String hash)
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://code.google.com/p/exodus' ver='QgayPKawpkPSDYmwT/WM94uAlu0='/>
public static CapsExtension from(Stanza stanza)