Package org.jivesoftware.smackx.receipts
Class DeliveryReceiptRequest
java.lang.Object
org.jivesoftware.smackx.receipts.DeliveryReceiptRequest
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
public class DeliveryReceiptRequest
extends Object
implements org.jivesoftware.smack.packet.ExtensionElement
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 StringaddTo(org.jivesoftware.smack.packet.Message message) Add a delivery receipt request to an outgoing packet.static voidaddTo(org.jivesoftware.smack.packet.MessageBuilder messageBuilder) Add a delivery receipt request to an outgoing packet.static DeliveryReceiptRequestfrom(org.jivesoftware.smack.packet.Stanza packet) Get theDeliveryReceiptRequestextension of the packet, if any.static DeliveryReceiptRequestgetFrom(org.jivesoftware.smack.packet.Stanza p) Deprecated.toXML(org.jivesoftware.smack.packet.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.Element
toXML, toXMLMethods 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
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
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
public static void addTo(org.jivesoftware.smack.packet.MessageBuilder messageBuilder) 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