Enum Body.Condition
- java.lang.Object
-
- java.lang.Enum<Body.Condition>
-
- rocks.xmpp.extensions.httpbind.model.Body.Condition
-
- All Implemented Interfaces:
Serializable
,Comparable<Body.Condition>
- Enclosing class:
- Body
public static enum Body.Condition extends Enum<Body.Condition>
The implementation of the 'condition' attribute of the<body/>
wrapper element, which indicates an error reported by the connection manager.- See Also:
- 17.2 Terminal Binding Conditions
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static Body.Condition
valueOf(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.
-
-
-
Enum Constant Detail
-
BAD_REQUEST
public static final Body.Condition BAD_REQUEST
The format of an HTTP header or binding element received from the client is unacceptable (e.g., syntax error).
-
HOST_GONE
public static final Body.Condition 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
public static final Body.Condition 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
public static final Body.Condition 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
public static final Body.Condition INTERNAL_SERVER_ERROR
The connection manager has experienced an internal error that prevents it from servicing the request.
-
ITEM_NOT_FOUND
public static final Body.Condition 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
public static final Body.Condition OTHER_REQUEST
Another request being processed at the same time as this request caused the session to terminate.
-
POLICY_VIOLATION
public static final Body.Condition POLICY_VIOLATION
The client has broken the session rules (polling too frequently, requesting too frequently, sending too many simultaneous requests).
-
REMOTE_CONNECTION_FAILED
public static final Body.Condition 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
public static final Body.Condition REMOTE_STREAM_ERROR
Encapsulates an error in the protocol being transported.
-
SEE_OTHER_URI
public static final Body.Condition 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). The client can try POSTing to the URI in the content of the<uri/>
child element.
-
SYSTEM_SHUTDOWN
public static final Body.Condition SYSTEM_SHUTDOWN
The connection manager is being shut down. All active HTTP sessions are being terminated. No new sessions can be created.
-
UNDEFINED_CONDITION
public static final Body.Condition 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.
-
-
Method Detail
-
values
public static Body.Condition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Body.Condition c : Body.Condition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Body.Condition valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Body.Condition>
-
-