Enum JingleActionEnum
- All Implemented Interfaces:
Serializable
,Comparable<JingleActionEnum>
The "action" in the jingle packet, as an enum.
Changed to reflect XEP-166 rev: 20JUN07
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic JingleActionEnum
Returns the Action enum for a String action value.toString()
Returns the String value for an Action.static JingleActionEnum
Returns the enum constant of this type with the specified name.static JingleActionEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
CONTENT_ACCEPT
-
CONTENT_ADD
-
CONTENT_MODIFY
-
CONTENT_REMOVE
-
SESSION_ACCEPT
-
SESSION_INFO
-
SESSION_INITIATE
-
SESSION_TERMINATE
-
TRANSPORT_INFO
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Returns the String value for an Action.- Overrides:
toString
in classEnum<JingleActionEnum>
-
getAction
Returns the Action enum for a String action value.- Parameters:
inActionCode
- the action code.- Returns:
- the jingle action.
-