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
public static final class TransportNegotiator.Ice extends TransportNegotiator
Ice transport negotiator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
TransportNegotiator.Ice, TransportNegotiator.RawUdp
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
CANDIDATES_ACCEPT_PERIOD
-
Fields inherited from class org.jivesoftware.smackx.jingleold.JingleNegotiator
session
-
-
Constructor Summary
Constructors Constructor Description Ice(JingleSession js, TransportResolver res, ContentNegotiator parentNegotiator)
Default constructor, with a JingleSession and transport manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates)
Return true for ICE candidates.TransportCandidate
getBestRemoteCandidate()
Obtain the best remote candidate obtained in the negotiation so far.JingleTransport
getJingleTransport(TransportCandidate candidate)
Get a TransportNegotiator instance.-
Methods inherited from class org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
close, dispatchIncomingPacket, doStart, getAcceptedLocalCandidate, getBestLocalCandidate, getJingleTransport, getOfferedCandidates, getValidRemoteCandidates, isFullyEstablished
-
Methods inherited from class org.jivesoftware.smackx.jingleold.JingleNegotiator
addExpectedId, addListener, getConnection, getListenersList, getNegotiatorState, getSession, isExpectedId, isStarted, removeExpectedId, removeListener, setNegotiatorState, setSession, start
-
-
-
-
Constructor Detail
-
Ice
public Ice(JingleSession js, TransportResolver res, ContentNegotiator parentNegotiator)
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 Detail
-
getJingleTransport
public JingleTransport getJingleTransport(TransportCandidate candidate)
Get a TransportNegotiator instance.- Specified by:
getJingleTransport
in classTransportNegotiator
- Parameters:
candidate
- TODO javadoc me please- Returns:
- A TransportNegotiator instance
-
getBestRemoteCandidate
public TransportCandidate getBestRemoteCandidate()
Obtain the best remote candidate obtained in the negotiation so far.- Specified by:
getBestRemoteCandidate
in classTransportNegotiator
- Returns:
- the bestRemoteCandidate
-
acceptableTransportCandidate
public boolean acceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates)
Return true for ICE candidates.- Specified by:
acceptableTransportCandidate
in classTransportNegotiator
- Parameters:
tc
- the transport candidate.localCandidates
- a list of local transport candidates.- Returns:
- true if the transport candidate is acceptable
-
-