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
Nested ClassesModifier and TypeClassDescriptionstatic classThis Provider parses and returns DeliveryReceiptRequest packets. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringAdd a delivery receipt request to an outgoing packet.static voidaddTo(MessageBuilder messageBuilder) Add a delivery receipt request to an outgoing packet.static DeliveryReceiptRequestGet theDeliveryReceiptRequestextension of the packet, if any.Returns the root element name.static DeliveryReceiptRequestDeprecated.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, waitMethods 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:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-
getFrom
Deprecated.usefrom(Stanza)insteadGet theDeliveryReceiptRequestextension of the packet, if any.- Parameters:
p- the packet- Returns:
- the
DeliveryReceiptRequestextension ornull
-
from
Get theDeliveryReceiptRequestextension of the packet, if any.- Parameters:
packet- the packet- Returns:
- the
DeliveryReceiptRequestextension 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