org.jivesoftware.smackx.jingle.nat
Class TransportNegotiator.RawUdp
java.lang.Object
org.jivesoftware.smackx.jingle.JingleNegotiator
org.jivesoftware.smackx.jingle.nat.TransportNegotiator
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
| 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 |
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.
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