Class AmqpRedirect


  • public class AmqpRedirect
    extends Object
    Encapsulates the AMQP Redirect Map
    • Constructor Detail

      • AmqpRedirect

        public AmqpRedirect​(Map<org.apache.qpid.proton.amqp.Symbol,​Object> redirect,
                            AmqpProvider provider)
    • Method Detail

      • getRedirectMap

        public Map<org.apache.qpid.proton.amqp.Symbol,​Object> getRedirectMap()
        Returns:
        the redirection map that backs this object
      • getHostname

        public String getHostname()
        Returns:
        the host name of the container being redirected to.
      • getNetworkHost

        public String getNetworkHost()
        Returns:
        the DNS host name or IP address of the peer this connection is being redirected to.
      • getPort

        public int getPort()
        Returns:
        the port number on the peer this connection is being redirected to.
      • getScheme

        public String getScheme()
        Returns:
        the scheme that the remote indicated the redirect connection should use.
      • getPath

        public String getPath()
        Returns:
        the path that the remote indicated should be path of the redirect URI.
      • toURI

        public URI toURI()
                  throws Exception
        Construct a URI from the redirection information available.
        Returns:
        a URI that matches the redirection information provided.
        Throws:
        Exception - if an error occurs construct a URI from the redirection information.