Package org.jivesoftware.smack.packet
Enum StreamError.Condition
- java.lang.Object
-
- java.lang.Enum<StreamError.Condition>
-
- org.jivesoftware.smack.packet.StreamError.Condition
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StreamError.Condition>
- Enclosing class:
- StreamError
public static enum StreamError.Condition extends java.lang.Enum<StreamError.Condition>
The defined stream error conditions, see RFC 6120 ยง 4.9.3.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamError.Condition
fromString(java.lang.String string)
java.lang.String
toString()
static StreamError.Condition
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StreamError.Condition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
bad_format
public static final StreamError.Condition bad_format
-
bad_namespace_prefix
public static final StreamError.Condition bad_namespace_prefix
-
conflict
public static final StreamError.Condition conflict
-
connection_timeout
public static final StreamError.Condition connection_timeout
-
host_gone
public static final StreamError.Condition host_gone
-
host_unknown
public static final StreamError.Condition host_unknown
-
improper_addressing
public static final StreamError.Condition improper_addressing
-
internal_server_error
public static final StreamError.Condition internal_server_error
-
invalid_from
public static final StreamError.Condition invalid_from
-
invalid_namespace
public static final StreamError.Condition invalid_namespace
-
invalid_xml
public static final StreamError.Condition invalid_xml
-
not_authorized
public static final StreamError.Condition not_authorized
-
not_well_formed
public static final StreamError.Condition not_well_formed
-
policy_violation
public static final StreamError.Condition policy_violation
-
remote_connection_failed
public static final StreamError.Condition remote_connection_failed
-
reset
public static final StreamError.Condition reset
-
resource_constraint
public static final StreamError.Condition resource_constraint
-
restricted_xml
public static final StreamError.Condition restricted_xml
-
see_other_host
public static final StreamError.Condition see_other_host
-
system_shutdown
public static final StreamError.Condition system_shutdown
-
undefined_condition
public static final StreamError.Condition undefined_condition
-
unsupported_encoding
public static final StreamError.Condition unsupported_encoding
-
unsupported_feature
public static final StreamError.Condition unsupported_feature
-
unsupported_stanza_type
public static final StreamError.Condition unsupported_stanza_type
-
unsupported_version
public static final StreamError.Condition unsupported_version
-
-
Method Detail
-
values
public static StreamError.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 (StreamError.Condition c : StreamError.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 StreamError.Condition valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<StreamError.Condition>
-
fromString
public static StreamError.Condition fromString(java.lang.String string)
-
-