Enum JingleAction
- java.lang.Object
-
- java.lang.Enum<JingleAction>
-
- org.jivesoftware.smackx.jingle.element.JingleAction
-
- All Implemented Interfaces:
Serializable
,Comparable<JingleAction>
public enum JingleAction extends Enum<JingleAction>
The "action" in the jingle packet, as an enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description content_accept
content_add
content_modify
content_reject
content_remove
description_info
security_info
session_accept
session_info
session_initiate
session_terminate
transport_accept
transport_info
transport_reject
transport_replace
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JingleAction
fromString(String string)
String
toString()
static JingleAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static JingleAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
content_accept
public static final JingleAction content_accept
-
content_add
public static final JingleAction content_add
-
content_modify
public static final JingleAction content_modify
-
content_reject
public static final JingleAction content_reject
-
content_remove
public static final JingleAction content_remove
-
description_info
public static final JingleAction description_info
-
security_info
public static final JingleAction security_info
-
session_accept
public static final JingleAction session_accept
-
session_info
public static final JingleAction session_info
-
session_initiate
public static final JingleAction session_initiate
-
session_terminate
public static final JingleAction session_terminate
-
transport_accept
public static final JingleAction transport_accept
-
transport_info
public static final JingleAction transport_info
-
transport_reject
public static final JingleAction transport_reject
-
transport_replace
public static final JingleAction transport_replace
-
-
Method Detail
-
values
public static JingleAction[] 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 (JingleAction c : JingleAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JingleAction 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<JingleAction>
-
fromString
public static JingleAction fromString(String string)
-
-