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
Raw-UDP 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
ConstructorsConstructorDescriptionRawUdp(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 fixed candidates.Obtain the best common transport candidate obtained in the negotiation.getJingleTransport(TransportCandidate bestRemote) 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
-
RawUdp
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 Details
-
getJingleTransport
Get a TransportNegotiator instance.- Specified by:
getJingleTransportin classTransportNegotiator- Parameters:
bestRemote- the transport candidate.- Returns:
- A TransportNegotiator instance
-
getBestRemoteCandidate
Obtain the best common transport candidate obtained in the negotiation.- Specified by:
getBestRemoteCandidatein classTransportNegotiator- Returns:
- the bestRemoteCandidate
-
acceptableTransportCandidate
public boolean acceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates) Return true for fixed 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
-