Class ClientRedirect
java.lang.Object
org.apache.qpid.protonj2.client.impl.ClientRedirect
Encapsulates the AMQP Redirect Map
-
Method Details
-
validate
Validate the information conveyed in the redirect and signal an error if it is invalid.- Returns:
- this
ClientRedirect
instance which can be assumed carries valid data. - Throws:
Exception
- if an error occurs during validation of the redirect payload.
-
getRedirectMap
- Returns:
- the redirection map that backs this object
-
getHostname
- Returns:
- the host name of the container being redirected to.
-
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
- Returns:
- the scheme that the remote indicated the redirect connection should use.
-
getPath
- Returns:
- the path that the remote indicated should be path of the redirect URI.
-
getAddress
- Returns:
- the address that the remote indicated should be used for link redirection.
-
toURI
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.
-
toString
-