-
- All Implemented Interfaces:
-
java.lang.Comparable
public class GoogleRelayedCandidate extends LocalCandidate
Represents a Candidate obtained by sending a Google TURN Allocate request from a HostCandidate to a TURN server. The Google relayed candidate is resident on the TURN server, and the TURN server relays packets back towards the agent.
-
-
Constructor Summary
Constructors Constructor Description GoogleRelayedCandidate(TransportAddress transportAddress, GoogleTurnCandidateHarvest turnCandidateHarvest, TransportAddress mappedAddress, String username, String password)Initializes a new RelayedCandidate which is to represent a specific TransportAddress harvested through a specific HostCandidate and a TURN server with a specific TransportAddress.
-
Method Summary
Modifier and Type Method Description StringgetPassword()Returns the password for this candidate. synchronized IceSocketWrappergetCandidateIceSocketWrapper()Gets the application-purposed DatagramSocket associated with this Candidate. -
Methods inherited from class org.ice4j.ice.LocalCandidate
getDatagramSocket, getExtendedType, getSocket, getStunSocket, getStunStack, getUfrag, isDefault, isSSL, setExtendedType, setSSL, setUfrag -
Methods inherited from class org.ice4j.ice.Candidate
canReach, compareTo, computeGTalkPriority, computeGTalkPriorityForType, computePriority, computePriorityForType, equals, getBase, getFoundation, getHostAddress, getMappedAddress, getParentComponent, getPriority, getReflexiveAddress, getRelatedAddress, getRelatedCandidate, getRelayServerAddress, getRelayedAddress, getStunServerAddress, getTcpType, getTransport, getTransportAddress, getType, hashCode, isVirtual, setBase, setCandidateType, setFoundation, setTcpType, setVirtual, toShortString, toString -
Methods inherited from class java.lang.Comparable
compareTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GoogleRelayedCandidate
GoogleRelayedCandidate(TransportAddress transportAddress, GoogleTurnCandidateHarvest turnCandidateHarvest, TransportAddress mappedAddress, String username, String password)
Initializes a new RelayedCandidate which is to represent a specific TransportAddress harvested through a specific HostCandidate and a TURN server with a specific TransportAddress.- Parameters:
transportAddress- the TransportAddress to be represented by the new instanceturnCandidateHarvest- the TurnCandidateHarvest which has harvested the new instancemappedAddress- the mapped TransportAddress reported by the TURN server with the delivery of the replayed transportAddressto be represented by the new instanceusername- username (Send request to the Google relay server need it)password- password (used with XMPP gingle candidates).
-
-
Method Detail
-
getPassword
String getPassword()
Returns the password for this candidate.
-
getCandidateIceSocketWrapper
synchronized IceSocketWrapper getCandidateIceSocketWrapper()
Gets the application-purposed DatagramSocket associated with this Candidate.
-
-
-
-