|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<IceCandidateType>
org.lastbamboo.common.ice.candidate.IceCandidateType
public enum IceCandidateType
Enumeration of ICE candidate types, such as host, relayed, server reflexive, or peer reflexive.
| Enum Constant Summary | |
|---|---|
HOST
Host candidates accessible on the local network. |
|
PEER_REFLEXIVE
Candidate discovered from exchanging STUN messages with peers. |
|
RELAYED
Candidates relayed through a STUN relay server. |
|
SERVER_REFLEXIVE
Candidates with public addresses determined using a STUN server. |
|
| Method Summary | |
|---|---|
int |
getTypePreference()
Accessor for the type preference used in the formula for calculating candidate priorities. |
String |
toSdp()
Gets the SDP representation of this type, such as "relay", "host", "srflx" or "prflx". |
static IceCandidateType |
toType(String sdp)
Gets the type for the associated SDP encoding. |
static IceCandidateType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IceCandidateType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IceCandidateType HOST
public static final IceCandidateType RELAYED
public static final IceCandidateType SERVER_REFLEXIVE
public static final IceCandidateType PEER_REFLEXIVE
| Method Detail |
|---|
public static IceCandidateType[] values()
for (IceCandidateType c : IceCandidateType.values()) System.out.println(c);
public static IceCandidateType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getTypePreference()
public String toSdp()
public static IceCandidateType toType(String sdp)
sdp - The SDP for the type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||