Package org.jivesoftware.smackx.receipts
Class DeliveryReceiptRequest
java.lang.Object
org.jivesoftware.smackx.receipts.DeliveryReceiptRequest
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
Represents a message delivery receipt request entry as specified by
Message Delivery Receipts.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This Provider parses and returns DeliveryReceiptRequest packets. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Add a delivery receipt request to an outgoing packet.static void
addTo
(MessageBuilder messageBuilder) Add a delivery receipt request to an outgoing packet.static DeliveryReceiptRequest
Get theDeliveryReceiptRequest
extension of the packet, if any.Returns the root element name.static DeliveryReceiptRequest
Deprecated.Returns the root element XML namespace.toXML
(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.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
QNAME
-
-
Constructor Details
-
DeliveryReceiptRequest
public DeliveryReceiptRequest()
-
-
Method Details
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-
getFrom
Deprecated.usefrom(Stanza)
insteadGet theDeliveryReceiptRequest
extension of the packet, if any.- Parameters:
p
- the packet- Returns:
- the
DeliveryReceiptRequest
extension ornull
-
from
Get theDeliveryReceiptRequest
extension of the packet, if any.- Parameters:
packet
- the packet- Returns:
- the
DeliveryReceiptRequest
extension ornull
-
addTo
Add a delivery receipt request to an outgoing packet. Only message packets may contain receipt requests as of XEP-0184, therefore only allow Message as the parameter type.- Parameters:
message
- Message object to add a request to- Returns:
- the Message ID which will be used as receipt ID
-
addTo
Add a delivery receipt request to an outgoing packet. Only message packets may contain receipt requests as of XEP-0184, therefore only allow Message as the parameter type.- Parameters:
messageBuilder
- Message object to add a request to
-
from(Stanza)
instead