public class RemoteCandidate extends Candidate<RemoteCandidate>
Modifier and Type | Field and Description |
---|---|
private String |
ufrag
Ufrag for the Google Talk candidate.
|
MAX_LOCAL_PREFERENCE, MAX_TYPE_PREFERENCE, MIN_LOCAL_PREFERENCE, MIN_TYPE_PREFERENCE, priority
Constructor and Description |
---|
RemoteCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
String foundation,
long priority,
RemoteCandidate relatedCandidate)
Creates a RemoteCandidate instance for the specified transport
address and properties.
|
RemoteCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
String foundation,
long priority,
RemoteCandidate relatedCandidate,
String ufrag)
Creates a RemoteCandidate instance for the specified transport
address and properties.
|
Modifier and Type | Method and Description |
---|---|
protected RemoteCandidate |
findRelatedCandidate(TransportAddress relatedAddress)
Find the candidate corresponding to the address given in parameter.
|
String |
getUfrag()
Get the remote ufrag.
|
boolean |
isDefault()
Determines whether this Candidate is the default one for its
parent component.
|
void |
setPriority(long priority)
Sets the priority of this RemoteCandidate.
|
canReach, compareTo, computeGTalkPriority, computeGTalkPriorityForType, computePriority, computePriorityForType, equals, getBase, getDefaultPreference, getFoundation, getHostAddress, getMappedAddress, getParentComponent, getPriority, getReflexiveAddress, getRelatedAddress, getRelatedCandidate, getRelayedAddress, getRelayServerAddress, getStunServerAddress, getTcpType, getTransport, getTransportAddress, getType, hashCode, isVirtual, setBase, setCandidateType, setFoundation, setMappedAddress, setRelayServerAddress, setStunServerAddress, setTcpType, setVirtual, toShortString, toString
private String ufrag
public RemoteCandidate(TransportAddress transportAddress, Component parentComponent, CandidateType type, String foundation, long priority, RemoteCandidate relatedCandidate)
transportAddress
- the transport address that this candidate is
encapsulating.parentComponent
- the Component that this candidate
belongs to.type
- the CandidateType for this Candidate.foundation
- the RemoteCandidate's foundation as reported
by the session description protocol.priority
- the RemoteCandidate's priority as reported
by the session description protocol.relatedCandidate
- the relatedCandidate: null for a host candidate,
the base address (host candidate) for a reflexive candidate, the mapped
address (the mapped address of the TURN allocate response) for a relayed
candidate.public RemoteCandidate(TransportAddress transportAddress, Component parentComponent, CandidateType type, String foundation, long priority, RemoteCandidate relatedCandidate, String ufrag)
transportAddress
- the transport address that this candidate is
encapsulating.parentComponent
- the Component that this candidate
belongs to.type
- the CandidateType for this Candidate.foundation
- the RemoteCandidate's foundation as reported
by the session description protocol.priority
- the RemoteCandidate's priority as reported
by the session description protocol.relatedCandidate
- the relatedCandidate: null for a host candidate,
the base address (host candidate) for a reflexive candidate, the mapped
address (the mapped address of the TURN allocate response) for a relayed
candidate.ufrag
- ufrag for the remote candidatepublic void setPriority(long priority)
priority
- the priority number between 1 and (2**32 - 1).public boolean isDefault()
isDefault
in class Candidate<RemoteCandidate>
public String getUfrag()
getUfrag
in class Candidate<RemoteCandidate>
protected RemoteCandidate findRelatedCandidate(TransportAddress relatedAddress)
findRelatedCandidate
in class Candidate<RemoteCandidate>
relatedAddress
- The related address:
- null for a host candidate,
- the base address (host candidate) for a reflexive candidate,
- the mapped address (the mapped address of the TURN allocate response)
for a relayed candidate.
- null for a peer reflexive candidate : there is no way to know the
related address.Copyright © 2018. All rights reserved.