Class Redirect


  • public final class Redirect
    extends Condition
    The implementation of the <redirect/> stanza error.

    8.3.3.14. redirect

    The recipient or server is redirecting requests for this information to another entity, typically in a temporary fashion (as opposed to the <gone/> error condition, which is used for permanent addressing failures); the associated error type SHOULD be "modify" and the error stanza SHOULD contain the alternate address in the XML character data of the <redirect/> element (which MUST be a URI or IRI with which the sender can communicate, typically an XMPP IRI as specified in [XMPP-URI]).

    See Also:
    Condition.redirect(String)
    • Method Detail

      • getAlternateAddress

        public final String getAlternateAddress()
        Gets the alternate address.
        Returns:
        The alternate address.