Package org.igniterealtime.jbosh
Class TerminalBindingCondition
java.lang.Object
org.igniterealtime.jbosh.TerminalBindingCondition
Terminal binding conditions and their associated messages.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final TerminalBindingCondition
private static final Map
<Integer, TerminalBindingCondition> Map of HTTP response codes to condition instances.private final String
Condition name.private static final Map
<String, TerminalBindingCondition> Map of condition names to condition instances.(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
private final String
Descriptive message.(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
(package private) static final TerminalBindingCondition
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TerminalBindingCondition
(String condition, String message) Private constructor to pre -
Method Summary
Modifier and TypeMethodDescriptionprivate static TerminalBindingCondition
Helper method to call the helper method to add entries.private static TerminalBindingCondition
createWithCode
(String condition, String message, Integer code) Helper method to add entries.(package private) static TerminalBindingCondition
forHTTPResponseCode
(int httpRespCode) Lookup the terminal binding condition instance associated with the HTTP response code specified.(package private) static TerminalBindingCondition
Lookup the terminal binding condition instance with the condition name specified.(package private) String
Get the name of the condition.(package private) String
Get the human readable error message associated with this condition.
-
Field Details
-
COND_TO_INSTANCE
Map of condition names to condition instances. -
CODE_TO_INSTANCE
Map of HTTP response codes to condition instances. -
BAD_REQUEST
-
HOST_GONE
-
HOST_UNKNOWN
-
IMPROPER_ADDRESSING
-
INTERNAL_SERVER_ERROR
-
ITEM_NOT_FOUND
-
OTHER_REQUEST
-
POLICY_VIOLATION
-
REMOTE_CONNECTION_FAILED
-
REMOTE_STREAM_ERROR
-
SEE_OTHER_URI
-
SYSTEM_SHUTDOWN
-
UNDEFINED_CONDITION
-
cond
Condition name. -
msg
Descriptive message.
-
-
Constructor Details
-
TerminalBindingCondition
Private constructor to pre
-
-
Method Details
-
create
Helper method to call the helper method to add entries. -
createWithCode
private static TerminalBindingCondition createWithCode(String condition, String message, Integer code) Helper method to add entries. -
forString
Lookup the terminal binding condition instance with the condition name specified.- Parameters:
condStr
- condition name- Returns:
- terminal binding condition instance, or
null
if no instance is known by the name specified
-
forHTTPResponseCode
Lookup the terminal binding condition instance associated with the HTTP response code specified.- Parameters:
httpRespCode
- HTTP response code- Returns:
- terminal binding condition instance, or
null
if no instance is known by the response code specified
-
getCondition
String getCondition()Get the name of the condition.- Returns:
- condition name
-
getMessage
String getMessage()Get the human readable error message associated with this condition.- Returns:
- error message
-