| Constructor and Description |
|---|
StanzaIDUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.xmpp.packet.Packet |
ensureUniqueAndStableStanzaID(org.xmpp.packet.Packet packet,
org.xmpp.packet.JID self)
Modifies the stanza that's passed as a packet by adding a Stanza ID.
|
static String |
findFirstUniqueAndStableStanzaID(org.xmpp.packet.Packet packet,
String by)
Returns the first stable and unique stanza-id value from the packet, that is defined
for a particular 'by' value.
|
static String |
generateUniqueAndStableStanzaID(org.xmpp.packet.Packet packet)
Returns a value that is an appropriate unique and stable stanza ID in
context of XEP-0359: it's either the origin-id value, or a UUID.
|
static UUID |
parseUniqueAndStableStanzaID(org.xmpp.packet.Packet packet,
String by)
Deprecated.
This implementation only works with IDs that are UUIDs, which they need not be. Use
findFirstUniqueAndStableStanzaID(Packet, String) instead. OF-2026 |
public static org.xmpp.packet.Packet ensureUniqueAndStableStanzaID(org.xmpp.packet.Packet packet,
org.xmpp.packet.JID self)
packet - The inbound packet (cannot be null).self - The ID of the 'local' entity that will generate the stanza ID (cannot be null).public static String generateUniqueAndStableStanzaID(org.xmpp.packet.Packet packet)
packet - The stanza for what to return the ID (cannot be null).@Deprecated public static UUID parseUniqueAndStableStanzaID(org.xmpp.packet.Packet packet, String by)
findFirstUniqueAndStableStanzaID(Packet, String) instead. OF-2026packet - The stanza (cannot be null).by - The 'by' value for which to return the ID (cannot be null or an empty string).public static String findFirstUniqueAndStableStanzaID(org.xmpp.packet.Packet packet, String by)
packet - The stanza (cannot be null).by - The 'by' value for which to return the ID (cannot be null or an empty string).Copyright © 2003–2020 Ignite Realtime. All rights reserved.