public final class StanzaForwardingManager extends Manager
This manager allows to forward stanzas to other XMPP entities.
Enabling this manager simply indicates support for the stanza forwarding extension in a service discovery response and has no further effect.
By default, stanza forwarding support is not enabled.
In order to check for a forwarded stanza, simply check for theForwarded
extension:
Forwarded forwarded = message.getExtension(Forwarded.class);
if (forwarded != null) {
Message forwardedMessage = forwarded.getMessage();
}
Modifier and Type | Method and Description |
---|---|
void |
forwardMessage(Message message,
Jid to)
Forwards a message to another XMPP entity.
|
isEnabled, setEnabled
Copyright © 2014–2019 XMPP.rocks. All rights reserved.