public class DeliveryReceipt extends java.lang.Object implements ExtensionElement
| Modifier and Type | Class and Description |
|---|---|
static class |
DeliveryReceipt.Provider
This Provider parses and returns DeliveryReceipt packets.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
DeliveryReceipt(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
static DeliveryReceipt |
from(Message message)
Get the
DeliveryReceipt extension of the message, if any. |
java.lang.String |
getElementName()
Returns the root element name.
|
static DeliveryReceipt |
getFrom(Message p)
Deprecated.
use
from(Message) instead |
java.lang.String |
getId() |
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
XmlStringBuilder |
toXML()
Returns the XML representation of this Element.
|
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT
public DeliveryReceipt(java.lang.String id)
public java.lang.String getId()
public java.lang.String getElementName()
NamedElementgetElementName in interface NamedElementpublic java.lang.String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElementpublic XmlStringBuilder toXML()
Element@Deprecated public static DeliveryReceipt getFrom(Message p)
from(Message) insteadDeliveryReceipt extension of the packet, if any.p - the packetDeliveryReceipt extension or nullpublic static DeliveryReceipt from(Message message)
DeliveryReceipt extension of the message, if any.message - the message.DeliveryReceipt extension or null