Package rocks.xmpp.core.stream
Enum StreamNegotiationResult
- java.lang.Object
-
- java.lang.Enum<StreamNegotiationResult>
-
- rocks.xmpp.core.stream.StreamNegotiationResult
-
- All Implemented Interfaces:
Serializable
,Comparable<StreamNegotiationResult>
public enum StreamNegotiationResult extends Enum<StreamNegotiationResult>
Represents the status of the feature negotiation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE
The feature will be ignored.INCOMPLETE
The feature negotiation is incomplete, i.e. it has only been partially negotiated.RESTART
The feature has been successfully negotiated and the stream now requires a restart.SUCCESS
The feature has been successfully negotiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamNegotiationResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static StreamNegotiationResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final StreamNegotiationResult SUCCESS
The feature has been successfully negotiated.
-
RESTART
public static final StreamNegotiationResult RESTART
The feature has been successfully negotiated and the stream now requires a restart.
-
INCOMPLETE
public static final StreamNegotiationResult INCOMPLETE
The feature negotiation is incomplete, i.e. it has only been partially negotiated.
-
IGNORE
public static final StreamNegotiationResult IGNORE
The feature will be ignored. Feature negotiation of the feature is either not initiated or aborted if it has already been started.
-
-
Method Detail
-
values
public static StreamNegotiationResult[] 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 (StreamNegotiationResult c : StreamNegotiationResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamNegotiationResult 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
-
-