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.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
public class DeliveryReceipt extends java.lang.Object implements org.jivesoftware.smack.packet.ExtensionElementRepresents a message delivery receipt entry as specified by Message Delivery Receipts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeliveryReceipt.ProviderThis Provider parses and returns DeliveryReceipt packets.
-
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 DeliveryReceiptfrom(org.jivesoftware.smack.packet.Message message)Get theDeliveryReceiptextension of the message, if any.java.lang.StringgetElementName()static DeliveryReceiptgetFrom(org.jivesoftware.smack.packet.Message p)Deprecated.usefrom(Message)insteadjava.lang.StringgetId()Get the id of the message that has been delivered.java.lang.StringgetNamespace()org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
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:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.FullyQualifiedElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getFrom
@Deprecated public static DeliveryReceipt getFrom(org.jivesoftware.smack.packet.Message p)
Deprecated.usefrom(Message)insteadGet theDeliveryReceiptextension of the packet, if any.- Parameters:
p- the packet- Returns:
- the
DeliveryReceiptextension ornull
-
from
public static DeliveryReceipt from(org.jivesoftware.smack.packet.Message message)
Get theDeliveryReceiptextension of the message, if any.- Parameters:
message- the message.- Returns:
- the
DeliveryReceiptextension ornull
-
-