public class DelayInformationManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LEGACY_DELAYED_DELIVERY_ELEMENT |
static String |
LEGACY_DELAYED_DELIVERY_NAMESPACE |
| Constructor and Description |
|---|
DelayInformationManager() |
| Modifier and Type | Method and Description |
|---|---|
static DelayInformation |
getDelayInformation(Stanza packet)
Get Delayed Delivery information.
|
static Date |
getDelayTimestamp(Stanza packet)
Get the Delayed Delivery timestamp or
null |
static DelayInformation |
getLegacyDelayInformation(Stanza packet)
Get Delayed Delivery information as defined in XEP-91
|
static DelayInformation |
getXep203DelayInformation(Stanza packet)
Get Delayed Delivery information as defined in XEP-203
|
static boolean |
isDelayedStanza(Stanza packet)
Check if the given stanza is a delayed stanza as of XEP-203.
|
public static final String LEGACY_DELAYED_DELIVERY_NAMESPACE
public static final String LEGACY_DELAYED_DELIVERY_ELEMENT
public DelayInformationManager()
public static DelayInformation getXep203DelayInformation(Stanza packet)
Prefer getDelayInformation(Stanza) over this method for backwards compatibility.
packet - nullpublic static DelayInformation getLegacyDelayInformation(Stanza packet)
Prefer getDelayInformation(Stanza) over this method for backwards compatibility.
packet - nullpublic static DelayInformation getDelayInformation(Stanza packet)
packet - nullpublic static Date getDelayTimestamp(Stanza packet)
nullpacket - nullpublic static boolean isDelayedStanza(Stanza packet)
packet -