Package org.jitsi.service.neomedia
Enum DtlsControl.Setup
- java.lang.Object
-
- java.lang.Enum<DtlsControl.Setup>
-
- org.jitsi.service.neomedia.DtlsControl.Setup
-
- All Implemented Interfaces:
Serializable,Comparable<DtlsControl.Setup>
- Enclosing interface:
- DtlsControl
public static enum DtlsControl.Setup extends Enum<DtlsControl.Setup>
Enumerates the possible values of the setup SDP attribute defined by RFC 4145 "TCP-Based Media Transport in the Session Description Protocol (SDP)".- Author:
- Lyubomir Marinov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DtlsControl.SetupparseSetup(String s)Parses a String into a Setup enum value.StringtoString()static DtlsControl.SetupvalueOf(String name)Returns the enum constant of this type with the specified name.static DtlsControl.Setup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final DtlsControl.Setup ACTIVE
-
ACTPASS
public static final DtlsControl.Setup ACTPASS
-
HOLDCONN
public static final DtlsControl.Setup HOLDCONN
-
PASSIVE
public static final DtlsControl.Setup PASSIVE
-
-
Method Detail
-
values
public static DtlsControl.Setup[] 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 (DtlsControl.Setup c : DtlsControl.Setup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DtlsControl.Setup 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
-
parseSetup
public static DtlsControl.Setup parseSetup(String s)
Parses a String into a Setup enum value. The specified String to parse must be in a format as produced bytoString(); otherwise, the method will throw an exception.- Parameters:
s- the String to parse into a Setup enum value- Returns:
- a Setup enum value on which toString() produces the specified s
- Throws:
IllegalArgumentException- if none of the Setup enum values produce the specified s when toString() is invoked on themNullPointerException- if s is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<DtlsControl.Setup>
-
-