Package org.jivesoftware.openfire.http
Enum BoshBindingError.Type
- java.lang.Object
-
- java.lang.Enum<BoshBindingError.Type>
-
- org.jivesoftware.openfire.http.BoshBindingError.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<BoshBindingError.Type>
- Enclosing class:
- BoshBindingError
public static enum BoshBindingError.Type extends Enum<BoshBindingError.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description recoverable
In the case of a recoverable binding error the client MUST repeat the HTTP request and all the preceding HTTP requests that have not received responses.terminate
The terminate error condition prevents the client from making any further requests until a new session is established.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getType()
Returns the type that will be displayed to the client.static BoshBindingError.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static BoshBindingError.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
terminate
public static final BoshBindingError.Type terminate
The terminate error condition prevents the client from making any further requests until a new session is established.
-
recoverable
public static final BoshBindingError.Type recoverable
In the case of a recoverable binding error the client MUST repeat the HTTP request and all the preceding HTTP requests that have not received responses. The content of these requests MUST be identical to the <body> elements of the original requests. This allows the connection manager to recover a session after the previous request was lost due to a communication failure.
-
-
Method Detail
-
values
public static BoshBindingError.Type[] 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 (BoshBindingError.Type c : BoshBindingError.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoshBindingError.Type 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
-
getType
public String getType()
Returns the type that will be displayed to the client.- Returns:
- the type that will be displayed to the client.
-
-