-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum CandidateTypeAccording to the ICE specification, Candidates have a type property which makes them server reflexive, peer reflexive, relayed or host).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STUN_CANDIDATEA Server Reflexive Candidate is a candidate whose IP address and port are a binding allocated by a NAT for an agent when it sent a packet through the NAT to a server. Server reflexive candidates can be learned by STUN servers using the Binding Request, or TURN servers, which provides both a Relayed and Server Reflexive candidate. This is the old name for "srflx".
LOCAL_CANDIDATEA candidate obtained by binding to a specific port from an interface on the host. This includes both physical interfaces and logical ones, such as ones obtained through Virtual Private Networks (VPNs) and Realm Specific IP (RSIP) [RFC3102] (which lives at the operating system level). This is the old name for "host".
HOST_CANDIDATEA candidate obtained by binding to a specific port from an interface on the host. This includes both physical interfaces and logical ones, such as ones obtained through Virtual Private Networks (VPNs) and Realm Specific IP (RSIP) [RFC3102] (which lives at the operating system level).
RELAYED_CANDIDATEA Relayed Candidate is a candidate obtained by sending a TURN Allocate request from a host candidate to a TURN server. The relayed candidate is resident on the TURN server, and the TURN server relays packets back towards the agent.
SERVER_REFLEXIVE_CANDIDATEA Server Reflexive Candidate is a candidate whose IP address and port are a binding allocated by a NAT for an agent when it sent a packet through the NAT to a server. Server reflexive candidates can be learned by STUN servers using the Binding Request, or TURN servers, which provides both a Relayed and Server Reflexive candidate.
PEER_REFLEXIVE_CANDIDATEPeer Reflexive Candidate: A candidate whose IP address and port are a binding allocated by a NAT for an agent when it sent a STUN Binding Request through the NAT to its peer.
-
Method Summary
Modifier and Type Method Description StringtoString()Returns the name of this CandidateType (e.g. static CandidateTypeparse(String candidateTypeName)Returns a CandidateType instance corresponding to the specified candidateTypeName. static Array<CandidateType>values()static CandidateTypevalueOf(String name)-
-
Method Detail
-
toString
String toString()
Returns the name of this CandidateType (e.g. "host", "prflx", "srflx", or "relay").
-
parse
static CandidateType parse(String candidateTypeName)
Returns a CandidateType instance corresponding to the specified candidateTypeName. For example, for name "host", this method would return HOST_CANDIDATE.
- Parameters:
candidateTypeName- the name that we'd like to parse.
-
values
static Array<CandidateType> values()
-
valueOf
static CandidateType valueOf(String name)
-
-
-
-