Class GcmPacketExtension
java.lang.Object
org.jivesoftware.smackx.json.packet.AbstractJsonPacketExtension
org.jivesoftware.smackx.gcm.packet.GcmPacketExtension
- All Implemented Interfaces:
Element, ExtensionElement, NamedElement, XmlElement, XmlLangElement
XMPP extension elements as used by Google's GCM Cloud Connection Server (XMPP).
This extension is semantically the same as JsonPacketExtension, but with
a different element and namespace. It is used to exchange message stanzas with a JSON payload as extension element.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GcmPacketExtensionRetrieve the GCM stanza extension from the packet.Returns the root element name.Returns the root element XML namespace.Methods inherited from class AbstractJsonPacketExtension
getJson, toXMLMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
-
NAMESPACE
-
QNAME
-
-
Constructor Details
-
GcmPacketExtension
-
-
Method Details
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Returns:
- the namespace.
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Returns:
- the element name.
-
from
Retrieve the GCM stanza extension from the packet.- Parameters:
packet- TODO javadoc me please- Returns:
- the GCM stanza extension or null.
-