public static enum Body.Condition extends java.lang.Enum<Body.Condition>
The implementation of the ‘condition’ attribute of the <body/>
wrapper element, which indicates an error reported by the connection manager.
Enum Constant and Description |
---|
BAD_REQUEST
The format of an HTTP header or binding element received from the client is unacceptable (e.g., syntax error).
|
HOST_GONE
The target domain specified in the 'to' attribute or the target host or port specified in the 'route' attribute is no longer serviced by the connection manager.
|
HOST_UNKNOWN
The target domain specified in the 'to' attribute or the target host or port specified in the 'route' attribute is unknown to the connection manager.
|
IMPROPER_ADDRESSING
The initialization element lacks a 'to' or 'route' attribute (or the attribute has no value) but the connection manager requires one.
|
INTERNAL_SERVER_ERROR
The connection manager has experienced an internal error that prevents it from servicing the request.
|
ITEM_NOT_FOUND
(1) 'sid' is not valid, (2) 'stream' is not valid, (3) 'rid' is larger than the upper limit of the expected window, (4) connection manager is unable to resend response, (5) 'key' sequence is invalid.
|
OTHER_REQUEST
Another request being processed at the same time as this request caused the session to terminate.
|
POLICY_VIOLATION
The client has broken the session rules (polling too frequently, requesting too frequently, sending too many simultaneous requests).
|
REMOTE_CONNECTION_FAILED
The connection manager was unable to connect to, or unable to connect securely to, or has lost its connection to, the server.
|
REMOTE_STREAM_ERROR
Encapsulates an error in the protocol being transported.
|
SEE_OTHER_URI
The connection manager does not operate at this URI (e.g., the connection manager accepts only SSL or TLS connections at some https: URI rather than the http: URI requested by the client).
|
SYSTEM_SHUTDOWN
The connection manager is being shut down.
|
UNDEFINED_CONDITION
The error is not one of those defined herein; the connection manager SHOULD include application-specific information in the content of the
<body/> wrapper. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static Body.Condition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Body.Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Body.Condition BAD_REQUEST
public static final Body.Condition HOST_GONE
public static final Body.Condition HOST_UNKNOWN
public static final Body.Condition IMPROPER_ADDRESSING
public static final Body.Condition INTERNAL_SERVER_ERROR
public static final Body.Condition ITEM_NOT_FOUND
public static final Body.Condition OTHER_REQUEST
public static final Body.Condition POLICY_VIOLATION
public static final Body.Condition REMOTE_CONNECTION_FAILED
public static final Body.Condition REMOTE_STREAM_ERROR
public static final Body.Condition SEE_OTHER_URI
<uri/>
child element.public static final Body.Condition SYSTEM_SHUTDOWN
public static final Body.Condition UNDEFINED_CONDITION
<body/>
wrapper.public static Body.Condition[] values()
for (Body.Condition c : Body.Condition.values()) System.out.println(c);
public static Body.Condition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<Body.Condition>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.