Class CapsExtension
- java.lang.Object
-
- org.jivesoftware.smackx.caps.packet.CapsExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class CapsExtension extends java.lang.Object implements ExtensionElement
A XEP-0115 Entity Capabilities extension.
-
-
Constructor Summary
Constructors Constructor Description CapsExtension(java.lang.String node, java.lang.String version, java.lang.String hash)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapsExtension
from(Stanza stanza)
java.lang.String
getElementName()
Returns the root element name.java.lang.String
getHash()
java.lang.String
getNamespace()
Returns the root element XML namespace.java.lang.String
getNode()
java.lang.String
getVer()
XmlStringBuilder
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
CapsExtension
public CapsExtension(java.lang.String node, java.lang.String version, java.lang.String hash)
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getNode
public java.lang.String getNode()
-
getVer
public java.lang.String getVer()
-
getHash
public java.lang.String getHash()
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
.<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://code.google.com/p/exodus' ver='QgayPKawpkPSDYmwT/WM94uAlu0='/>
-
from
public static CapsExtension from(Stanza stanza)
-
-