Class TransportNegotiator.Ice
java.lang.Object
org.jivesoftware.smackx.jingleold.JingleNegotiator
org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
org.jivesoftware.smackx.jingleold.nat.TransportNegotiator.Ice
- Enclosing class:
TransportNegotiator
Ice transport negotiator.
-
Nested Class Summary
Nested classes/interfaces inherited from class TransportNegotiator
TransportNegotiator.Ice, TransportNegotiator.RawUdp -
Field Summary
Fields inherited from class TransportNegotiator
CANDIDATES_ACCEPT_PERIODFields inherited from class JingleNegotiator
session -
Constructor Summary
ConstructorsConstructorDescriptionIce(JingleSession js, TransportResolver res, ContentNegotiator parentNegotiator) Default constructor, with a JingleSession and transport manager. -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates) Return true for ICE candidates.Obtain the best remote candidate obtained in the negotiation so far.getJingleTransport(TransportCandidate candidate) Get a TransportNegotiator instance.Methods inherited from class TransportNegotiator
close, dispatchIncomingPacket, doStart, getAcceptedLocalCandidate, getBestLocalCandidate, getJingleTransport, getOfferedCandidates, getValidRemoteCandidates, isFullyEstablishedMethods inherited from class JingleNegotiator
addExpectedId, addListener, getConnection, getListenersList, getNegotiatorState, getSession, isExpectedId, isStarted, removeExpectedId, removeListener, setNegotiatorState, setSession, start
-
Constructor Details
-
Ice
Default constructor, with a JingleSession and transport manager.- Parameters:
js- The Jingle session this negotiation belongs to.res- The transport manager to use.parentNegotiator- the parent content negotiator.
-
-
Method Details
-
getJingleTransport
Get a TransportNegotiator instance.- Specified by:
getJingleTransportin classTransportNegotiator- Parameters:
candidate- TODO javadoc me please- Returns:
- A TransportNegotiator instance
-
getBestRemoteCandidate
Obtain the best remote candidate obtained in the negotiation so far.- Specified by:
getBestRemoteCandidatein classTransportNegotiator- Returns:
- the bestRemoteCandidate
-
acceptableTransportCandidate
public boolean acceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates) Return true for ICE candidates.- Specified by:
acceptableTransportCandidatein classTransportNegotiator- Parameters:
tc- the transport candidate.localCandidates- a list of local transport candidates.- Returns:
- true if the transport candidate is acceptable
-