Package org.jivesoftware.smackx.delay
Class DelayInformationManager
java.lang.Object
org.jivesoftware.smackx.delay.DelayInformationManager
Delayed Delivery (XEP-203).
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DelayInformation
getDelayInformation
(Stanza packet) Get Delayed Delivery information.static Date
getDelayTimestamp
(Stanza packet) Get the Delayed Delivery timestamp ornull
.static DelayInformation
getLegacyDelayInformation
(Stanza packet) Get Delayed Delivery information as defined in XEP-91static DelayInformation
getXep203DelayInformation
(Stanza packet) Get Delayed Delivery information as defined in XEP-203static boolean
isDelayedStanza
(Stanza packet) Check if the given stanza is a delayed stanza as of XEP-203.
-
Field Details
-
LEGACY_DELAYED_DELIVERY_NAMESPACE
- See Also:
-
LEGACY_DELAYED_DELIVERY_ELEMENT
- See Also:
-
QNAME
-
-
Constructor Details
-
DelayInformationManager
public DelayInformationManager()
-
-
Method Details
-
getXep203DelayInformation
Get Delayed Delivery information as defined in XEP-203Prefer
getDelayInformation(Stanza)
over this method for backwards compatibility.- Parameters:
packet
- TODO javadoc me please- Returns:
- the Delayed Delivery information or
null
-
getLegacyDelayInformation
Get Delayed Delivery information as defined in XEP-91Prefer
getDelayInformation(Stanza)
over this method for backwards compatibility.- Parameters:
packet
- TODO javadoc me please- Returns:
- the Delayed Delivery information or
null
-
getDelayInformation
Get Delayed Delivery information. This method first looks for a PacketExtension with the XEP-203 namespace and falls back to the XEP-91 namespace.- Parameters:
packet
- TODO javadoc me please- Returns:
- the Delayed Delivery information or
null
-
getDelayTimestamp
Get the Delayed Delivery timestamp ornull
.- Parameters:
packet
- TODO javadoc me please- Returns:
- the Delayed Delivery timestamp or
null
-
isDelayedStanza
Check if the given stanza is a delayed stanza as of XEP-203.- Parameters:
packet
- TODO javadoc me please- Returns:
- true if the stanza got delayed.
-