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
- null
public static DelayInformation getLegacyDelayInformation(Stanza packet)
Prefer getDelayInformation(Stanza)
over this method for backwards compatibility.
packet
- null
public static DelayInformation getDelayInformation(Stanza packet)
packet
- null
public static Date getDelayTimestamp(Stanza packet)
null
packet
- null
public static boolean isDelayedStanza(Stanza packet)
packet
-