Class StanzaForwardingManager

  • All Implemented Interfaces:
    ExtensionProtocol, DiscoverableInfo

    public final class StanzaForwardingManager
    extends Manager
    implements ExtensionProtocol, DiscoverableInfo
    This manager allows forwarding 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 the Forwarded extension:

    
     Forwarded forwarded = message.getExtension(Forwarded.class);
     if (forwarded != null) {
         Message forwardedMessage = forwarded.getMessage();
     }