Class SeeOtherHost
- java.lang.Object
-
- rocks.xmpp.core.stream.model.errors.Condition
-
- rocks.xmpp.core.stream.model.errors.SeeOtherHost
-
public final class SeeOtherHost extends Condition
The implementation of the<see-other-host/>
stream error.The server will not provide service to the initiating entity but is redirecting traffic to another host under the administrative control of the same service provider. The XML character data of the
<see-other-host/>
element returned by the server MUST specify the alternate FQDN or IP address at which to connect, which MUST be a valid domainpart or a domainpart plus port number (separated by the ':' character in the form "domainpart:port"). If the domainpart is the same as the source domain, derived domain, or resolved IPv4 or IPv6 address to which the initiating entity originally connected (differing only by the port number), then the initiating entity SHOULD simply attempt to reconnect at that address. (The format of an IPv6 address MUST follow [IPv6-ADDR], which includes the enclosing the IPv6 address in square brackets '[' and ']' as originally defined by [URI].) Otherwise, the initiating entity MUST resolve the FQDN specified in the<see-other-host/>
element as described under Section 3.2.- See Also:
Condition.seeOtherHost(String)
-
-
Field Summary
-
Fields inherited from class rocks.xmpp.core.stream.model.errors.Condition
BAD_FORMAT, BAD_NAMESPACE_PREFIX, CONFLICT, CONNECTION_TIMEOUT, HOST_GONE, HOST_UNKNOWN, IMPROPER_ADDRESSING, INTERNAL_SERVER_ERROR, INVALID_FROM, INVALID_NAMESPACE, INVALID_XML, NOT_AUTHORIZED, NOT_WELL_FORMED, POLICY_VIOLATION, REMOTE_CONNECTION_FAILED, RESET, RESOURCE_CONSTRAINT, RESTRICTED_XML, SYSTEM_SHUTDOWN, UNDEFINED_CONDITION, UNSUPPORTED_ENCODING, UNSUPPORTED_FEATURE, UNSUPPORTED_STANZA_TYPE, UNSUPPORTED_VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOtherHost()
Gets the other host.-
Methods inherited from class rocks.xmpp.core.stream.model.errors.Condition
seeOtherHost, toString
-
-
-
-
Method Detail
-
getOtherHost
public final String getOtherHost()
Gets the other host.- Returns:
- The other host.
-
-