Class JsonPacketExtension
- java.lang.Object
-
- org.jivesoftware.smackx.json.packet.AbstractJsonPacketExtension
-
- org.jivesoftware.smackx.json.packet.JsonPacketExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class JsonPacketExtension extends AbstractJsonPacketExtension
XMPP JSON Containers as defined in XEP-0335.- See Also:
- XEP-0335: JSON Containers
-
-
Constructor Summary
Constructors Constructor Description JsonPacketExtension(java.lang.String json)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonPacketExtension
from(Stanza packet)
Retrieve the JSON stanza extension from the packet.java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.-
Methods inherited from class org.jivesoftware.smackx.json.packet.AbstractJsonPacketExtension
getJson, toXML
-
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
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
JsonPacketExtension
public JsonPacketExtension(java.lang.String json)
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Returns:
- the namespace.
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
from
public static JsonPacketExtension from(Stanza packet)
Retrieve the JSON stanza extension from the packet.- Parameters:
packet
- TODO javadoc me please- Returns:
- the JSON stanza extension or null.
-
-