org.jivesoftware.smackx.jingle.nat
Class TransportNegotiator.RawUdp

java.lang.Object
  extended by org.jivesoftware.smackx.jingle.JingleNegotiator
      extended by org.jivesoftware.smackx.jingle.nat.TransportNegotiator
          extended by org.jivesoftware.smackx.jingle.nat.TransportNegotiator.RawUdp
Enclosing class:
TransportNegotiator

public static final class TransportNegotiator.RawUdp
extends TransportNegotiator

Raw-UDP transport negotiator

Author:
Alvaro Saurin

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingle.nat.TransportNegotiator
TransportNegotiator.Ice, TransportNegotiator.RawUdp
 
Field Summary
 
Fields inherited from class org.jivesoftware.smackx.jingle.nat.TransportNegotiator
CANDIDATES_ACCEPT_PERIOD
 
Constructor Summary
TransportNegotiator.RawUdp(JingleSession js, TransportResolver res, ContentNegotiator parentNegotiator)
          Default constructor, with a JingleSession and transport manager.
 
Method Summary
 boolean acceptableTransportCandidate(TransportCandidate tc, java.util.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.jingle.nat.TransportNegotiator
close, dispatchIncomingPacket, getAcceptedLocalCandidate, getBestLocalCandidate, getJingleTransport, getOfferedCandidates, getValidRemoteCandidates, isFullyEstablished
 
Methods inherited from class org.jivesoftware.smackx.jingle.JingleNegotiator
addExpectedId, addListener, getConnection, getNegotiatorState, getSession, isExpectedId, isStarted, removeExpectedId, removeListener, setNegotiatorState, setSession, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportNegotiator.RawUdp

public TransportNegotiator.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.
Method Detail

getJingleTransport

public JingleTransport getJingleTransport(TransportCandidate bestRemote)
Get a TransportNegotiator instance.

Specified by:
getJingleTransport in class TransportNegotiator
Returns:
A TransportNegotiator instance

getBestRemoteCandidate

public TransportCandidate getBestRemoteCandidate()
Obtain the best common transport candidate obtained in the negotiation.

Specified by:
getBestRemoteCandidate in class TransportNegotiator
Returns:
the bestRemoteCandidate

acceptableTransportCandidate

public boolean acceptableTransportCandidate(TransportCandidate tc,
                                            java.util.List<TransportCandidate> localCandidates)
Return true for fixed candidates.

Specified by:
acceptableTransportCandidate in class TransportNegotiator
Returns:
true if the transport candidate is acceptable