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
Modifier and TypeClassDescriptionstatic class
This Provider parses and returns DeliveryReceipt packets. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryReceipt
Get theDeliveryReceipt
extension of the message, if any.Returns the root element name.static DeliveryReceipt
Deprecated.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, wait
Methods 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:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-
getFrom
Deprecated.usefrom(Message)
insteadGet theDeliveryReceipt
extension of the packet, if any.- Parameters:
p
- the packet- Returns:
- the
DeliveryReceipt
extension ornull
-
from
Get theDeliveryReceipt
extension of the message, if any.- Parameters:
message
- the message.- Returns:
- the
DeliveryReceipt
extension ornull
-
from(Message)
instead