Class TransportNegotiator.RawUdp
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.JingleNegotiator
-
- org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
-
- org.jivesoftware.smackx.jingleold.nat.TransportNegotiator.RawUdp
-
- Enclosing class:
- TransportNegotiator
public static final class TransportNegotiator.RawUdp extends TransportNegotiator
Raw-UDP 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 RawUdp(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 fixed candidates.TransportCandidate
getBestRemoteCandidate()
Obtain the best common transport candidate obtained in the negotiation.JingleTransport
getJingleTransport(TransportCandidate bestRemote)
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
-
RawUdp
public RawUdp(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 resolver to use.parentNegotiator
- the parent content negotiator.
-
-
Method Detail
-
getJingleTransport
public JingleTransport getJingleTransport(TransportCandidate bestRemote)
Get a TransportNegotiator instance.- Specified by:
getJingleTransport
in classTransportNegotiator
- Parameters:
bestRemote
- the transport candidate.- Returns:
- A TransportNegotiator instance
-
getBestRemoteCandidate
public TransportCandidate getBestRemoteCandidate()
Obtain the best common transport candidate obtained in the negotiation.- Specified by:
getBestRemoteCandidate
in classTransportNegotiator
- Returns:
- the bestRemoteCandidate
-
acceptableTransportCandidate
public boolean acceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates)
Return true for fixed 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
-
-