public class StanzaIDUtil extends Object
| 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 |
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.
|
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).Copyright © 2003–2019 Ignite Realtime. All rights reserved.