Class AmqpRedirect
- java.lang.Object
-
- org.apache.qpid.jms.provider.amqp.AmqpRedirect
-
public class AmqpRedirect extends java.lang.ObjectEncapsulates the AMQP Redirect Map
-
-
Constructor Summary
Constructors Constructor Description AmqpRedirect(java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> redirect, AmqpProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHostname()java.lang.StringgetNetworkHost()java.lang.StringgetPath()intgetPort()java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object>getRedirectMap()java.lang.StringgetScheme()java.lang.StringtoString()java.net.URItoURI()Construct a URI from the redirection information available.AmqpRedirectvalidate()
-
-
-
Constructor Detail
-
AmqpRedirect
public AmqpRedirect(java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> redirect, AmqpProvider provider)
-
-
Method Detail
-
validate
public AmqpRedirect validate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRedirectMap
public java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> getRedirectMap()
- Returns:
- the redirection map that backs this object
-
getHostname
public java.lang.String getHostname()
- Returns:
- the host name of the container being redirected to.
-
getNetworkHost
public java.lang.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 java.lang.String getScheme()
- Returns:
- the scheme that the remote indicated the redirect connection should use.
-
getPath
public java.lang.String getPath()
- Returns:
- the path that the remote indicated should be path of the redirect URI.
-
toURI
public java.net.URI toURI() throws java.lang.ExceptionConstruct a URI from the redirection information available.- Returns:
- a URI that matches the redirection information provided.
- Throws:
java.lang.Exception- if an error occurs construct a URI from the redirection information.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-