Class JsonPacketExtension

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.FullyQualifiedElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlLangElement

    public class JsonPacketExtension
    extends AbstractJsonPacketExtension
    XMPP JSON Containers as defined in XEP-0335.
    See Also:
    XEP-0335: JSON Containers
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEMENT  
      static java.lang.String NAMESPACE  
      static javax.xml.namespace.QName QNAME  
    • 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​(org.jivesoftware.smack.packet.Stanza packet)
      Retrieve the JSON stanza extension from the packet.
      java.lang.String getElementName()  
      java.lang.String getNamespace()  
      • 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.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement

        getLanguage, getQName
    • Field Detail

      • 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()
      • getElementName

        public java.lang.String getElementName()
      • from

        public static JsonPacketExtension from​(org.jivesoftware.smack.packet.Stanza packet)
        Retrieve the JSON stanza extension from the packet.
        Parameters:
        packet - TODO javadoc me please
        Returns:
        the JSON stanza extension or null.