Package org.jivesoftware.smackx.receipts
Class DeliveryReceipt
java.lang.Object
org.jivesoftware.smackx.receipts.DeliveryReceipt
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
public class DeliveryReceipt
extends Object
implements org.jivesoftware.smack.packet.ExtensionElement
Represents a message delivery receipt entry as specified by
Message Delivery Receipts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis Provider parses and returns DeliveryReceipt packets. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryReceiptfrom(org.jivesoftware.smack.packet.Message message) Get theDeliveryReceiptextension of the message, if any.static DeliveryReceiptgetFrom(org.jivesoftware.smack.packet.Message p) Deprecated.getId()Get the id of the message that has been delivered.org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
NAMESPACE
- See Also:
-
ELEMENT
- See Also:
-
QNAME
-
-
Constructor Details
-
DeliveryReceipt
-
-
Method Details
-
getId
Get the id of the message that has been delivered.- Returns:
- id of the delivered message or
null.
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getFrom
Deprecated.usefrom(Message)insteadGet theDeliveryReceiptextension of the packet, if any.- Parameters:
p- the packet- Returns:
- the
DeliveryReceiptextension ornull
-
from
Get theDeliveryReceiptextension of the message, if any.- Parameters:
message- the message.- Returns:
- the
DeliveryReceiptextension ornull
-
from(Message)instead