-
- All Implemented Interfaces:
-
org.ice4j.ice.harvest.CandidateHarvester
public class TurnCandidateHarvester extends StunCandidateHarvester
Implements a CandidateHarvester which gathers TURN Candidates for a specified Component.
-
-
Constructor Summary
Constructors Constructor Description TurnCandidateHarvester(TransportAddress turnServer)Initializes a new TurnCandidateHarvester instance which is to work with a specific TURN server. TurnCandidateHarvester(TransportAddress turnServer, LongTermCredential longTermCredential)Initializes a new TurnCandidateHarvester instance which is to work with a specific TURN server using a specific LongTermCredential. TurnCandidateHarvester(TransportAddress turnServer, String shortTermCredentialUsername)Initializes a new TurnCandidateHarvester instance which is to work with a specific TURN server using a specific username for the purposes of the STUN short-term credential mechanism.
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class org.ice4j.ice.harvest.StunCandidateHarvester
getStunStack, harvest, toString -
Methods inherited from class org.ice4j.ice.harvest.AbstractCandidateHarvester
getHarvestStatistics, isHostHarvester -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TurnCandidateHarvester
TurnCandidateHarvester(TransportAddress turnServer)
Initializes a new TurnCandidateHarvester instance which is to work with a specific TURN server.- Parameters:
turnServer- the TransportAddress of the TURN server the new instance is to work with
-
TurnCandidateHarvester
TurnCandidateHarvester(TransportAddress turnServer, LongTermCredential longTermCredential)
Initializes a new TurnCandidateHarvester instance which is to work with a specific TURN server using a specific LongTermCredential.- Parameters:
turnServer- the TransportAddress of the TURN server the new instance is to work withlongTermCredential- the LongTermCredential to use with the specified turnServer or null if the use of the long-term credential mechanism is not determined at the time of the initialization of the new TurnCandidateHarvester instance
-
TurnCandidateHarvester
TurnCandidateHarvester(TransportAddress turnServer, String shortTermCredentialUsername)
Initializes a new TurnCandidateHarvester instance which is to work with a specific TURN server using a specific username for the purposes of the STUN short-term credential mechanism.- Parameters:
turnServer- the TransportAddress of the TURN server the new instance is to work withshortTermCredentialUsername- the username to be used by the new instance for the purposes of the STUN short-term credential mechanism or null if the use of the STUN short-term credential mechanism is not determined at the time of the construction of the new instance
-
-
-
-