Package org.jivesoftware.smackx.receipts
Class DeliveryReceipt
java.lang.Object
org.jivesoftware.smackx.receipts.DeliveryReceipt
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
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 DeliveryReceiptGet theDeliveryReceiptextension of the message, if any.Returns the root element name.static DeliveryReceiptDeprecated.getId()Get the id of the message that has been delivered.Returns the root element XML namespace.toXML(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.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
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-
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