Class DeliveryReceipt

  • 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 DeliveryReceipt
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.ExtensionElement
    Represents a message delivery receipt entry as specified by Message Delivery Receipts.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DeliveryReceipt.Provider
      This Provider parses and returns DeliveryReceipt packets.
    • 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
      DeliveryReceipt​(java.lang.String id)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static DeliveryReceipt from​(org.jivesoftware.smack.packet.Message message)
      Get the DeliveryReceipt extension of the message, if any.
      java.lang.String getElementName()  
      static DeliveryReceipt getFrom​(org.jivesoftware.smack.packet.Message p)
      Deprecated.
      use from(Message) instead
      java.lang.String getId()
      Get the id of the message that has been delivered.
      java.lang.String getNamespace()  
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.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.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

      • DeliveryReceipt

        public DeliveryReceipt​(java.lang.String id)
    • Method Detail

      • getId

        public java.lang.String getId()
        Get the id of the message that has been delivered.
        Returns:
        id of the delivered message or null.
      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.FullyQualifiedElement
      • toXML

        public org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element
      • from

        public static DeliveryReceipt from​(org.jivesoftware.smack.packet.Message message)
        Get the DeliveryReceipt extension of the message, if any.
        Parameters:
        message - the message.
        Returns:
        the DeliveryReceipt extension or null