public class DeliveryReceiptRequest extends Object implements ExtensionElement
Modifier and Type | Class and Description |
---|---|
static class |
DeliveryReceiptRequest.Provider
This Provider parses and returns DeliveryReceiptRequest packets.
|
Constructor and Description |
---|
DeliveryReceiptRequest() |
Modifier and Type | Method and Description |
---|---|
static String |
addTo(Message message)
Add a delivery receipt request to an outgoing packet.
|
static DeliveryReceiptRequest |
from(Stanza packet)
Get the
DeliveryReceiptRequest extension of the packet, if any. |
String |
getElementName()
Returns the root element name.
|
static DeliveryReceiptRequest |
getFrom(Stanza p)
Deprecated.
use
from(Stanza) instead |
String |
getNamespace()
Returns the root element XML namespace.
|
String |
toXML()
Returns the XML representation of this Element.
|
public static final String ELEMENT
public DeliveryReceiptRequest()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public String toXML()
Element
@Deprecated public static DeliveryReceiptRequest getFrom(Stanza p)
from(Stanza)
insteadDeliveryReceiptRequest
extension of the packet, if any.p
- the packetDeliveryReceiptRequest
extension or null
public static DeliveryReceiptRequest from(Stanza packet)
DeliveryReceiptRequest
extension of the packet, if any.packet
- the packetDeliveryReceiptRequest
extension or null
public static String addTo(Message message)
message
- Message object to add a request to