public class JsonPacketExtension extends AbstractJsonPacketExtension
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
JsonPacketExtension(String json) |
Modifier and Type | Method and Description |
---|---|
static JsonPacketExtension |
from(Stanza packet)
Retrieve the JSON stanza(/packet) extension from the packet.
|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
getJson, toXML
public static final String ELEMENT
public static final String NAMESPACE
public JsonPacketExtension(String json)
public String getNamespace()
ExtensionElement
public String getElementName()
NamedElement
public static JsonPacketExtension from(Stanza packet)
packet
-