Package org.jivesoftware.smackx.receipts
Class DeliveryReceipt
- java.lang.Object
-
- org.jivesoftware.smackx.receipts.DeliveryReceipt
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class DeliveryReceipt extends java.lang.Object implements ExtensionElement
Represents 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(Message message)Get theDeliveryReceiptextension of the message, if any.java.lang.StringgetElementName()Returns the root element name.static DeliveryReceiptgetFrom(Message p)Deprecated.usefrom(Message)insteadjava.lang.StringgetId()Get the id of the message that has been delivered.java.lang.StringgetNamespace()Returns the root element XML namespace.XmlStringBuildertoXML(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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
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
-
-
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()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getFrom
@Deprecated public static DeliveryReceipt getFrom(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(Message message)
Get theDeliveryReceiptextension of the message, if any.- Parameters:
message- the message.- Returns:
- the
DeliveryReceiptextension ornull
-
-