public class DeliveryReceipt extends Object implements PacketExtension
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 |
---|---|
String |
getElementName()
Returns the root element name.
|
static DeliveryReceipt |
getFrom(Packet p)
Get the
DeliveryReceipt extension of the packet, if any. |
String |
getId() |
String |
getNamespace()
Returns the root element XML namespace.
|
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public static final String NAMESPACE
public static final String ELEMENT
public DeliveryReceipt(String id)
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension
public static DeliveryReceipt getFrom(Packet p)
DeliveryReceipt
extension of the packet, if any.p
- the packetDeliveryReceipt
extension or null