public class DeliveryReceipt extends 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 String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
DeliveryReceipt(String id) |
Modifier and Type | Method and Description |
---|---|
static DeliveryReceipt |
from(Message message)
Get the
DeliveryReceipt extension of the message, if any. |
String |
getElementName()
Returns the root element name.
|
static DeliveryReceipt |
getFrom(Message p)
Deprecated.
use
from(Message) instead |
String |
getId()
Get the id of the message that has been delivered.
|
String |
getNamespace()
Returns the root element XML namespace.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String NAMESPACE
public static final String ELEMENT
public DeliveryReceipt(String id)
public String getId()
null
.public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element
@Deprecated public static DeliveryReceipt getFrom(Message p)
from(Message)
insteadDeliveryReceipt
extension of the packet, if any.p
- the packetDeliveryReceipt
extension or null
public static DeliveryReceipt from(Message message)
DeliveryReceipt
extension of the message, if any.message
- the message.DeliveryReceipt
extension or null