Enum S5bTransportMethod.Candidate.Type
- java.lang.Object
-
- java.lang.Enum<S5bTransportMethod.Candidate.Type>
-
- rocks.xmpp.extensions.jingle.transports.s5b.model.S5bTransportMethod.Candidate.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<S5bTransportMethod.Candidate.Type>
- Enclosing class:
- S5bTransportMethod.Candidate
public static enum S5bTransportMethod.Candidate.Type extends Enum<S5bTransportMethod.Candidate.Type>
The transport type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPreferenceValue()
The preference value.static S5bTransportMethod.Candidate.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static S5bTransportMethod.Candidate.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIRECT
public static final S5bTransportMethod.Candidate.Type DIRECT
Direct connection using the given interface.
-
ASSISTED
public static final S5bTransportMethod.Candidate.Type ASSISTED
Direct connection using NAT assisting technologies like NAT-PMP or UPnP-IGD.
-
TUNNEL
public static final S5bTransportMethod.Candidate.Type TUNNEL
Tunnel protocols such as Teredo.
-
PROXY
public static final S5bTransportMethod.Candidate.Type PROXY
SOCKS5 Relay.
-
-
Method Detail
-
values
public static S5bTransportMethod.Candidate.Type[] 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 (S5bTransportMethod.Candidate.Type c : S5bTransportMethod.Candidate.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static S5bTransportMethod.Candidate.Type 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
-
getPreferenceValue
public final int getPreferenceValue()
The preference value.- Returns:
- The preference value.
-
-