|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.jingle.JingleNegotiator
org.jivesoftware.smackx.jingle.nat.TransportNegotiator
public abstract class TransportNegotiator
Transport negotiator.
This class is responsible for managing the transport negotiation process, handling all the packet interchange and the stage control.
| Nested Class Summary | |
|---|---|
static class |
TransportNegotiator.Ice
Ice transport negotiator. |
static class |
TransportNegotiator.RawUdp
Raw-UDP transport negotiator |
| Field Summary | |
|---|---|
static int |
CANDIDATES_ACCEPT_PERIOD
|
| Constructor Summary | |
|---|---|
TransportNegotiator(JingleSession session,
TransportResolver transResolver,
ContentNegotiator parentNegotiator)
Default constructor. |
|
| Method Summary | |
|---|---|
abstract boolean |
acceptableTransportCandidate(TransportCandidate tc,
java.util.List<TransportCandidate> localCandidates)
Return true if the transport candidate is acceptable for the current negotiator. |
void |
close()
Called from above to session-terminate. |
java.util.List<IQ> |
dispatchIncomingPacket(IQ iq,
java.lang.String id)
Dispatch an incoming packet. |
TransportCandidate |
getAcceptedLocalCandidate()
Get the best accepted local candidate we have offered. |
TransportCandidate |
getBestLocalCandidate()
Obtain the best local candidate we want to offer. |
abstract TransportCandidate |
getBestRemoteCandidate()
Obtain the best common transport candidate obtained in the negotiation. |
JingleTransport |
getJingleTransport()
Return a JingleTransport that best reflects this transport negotiator. |
abstract JingleTransport |
getJingleTransport(TransportCandidate cand)
Get a new instance of the right TransportNegotiator class with this candidate. |
java.util.List<TransportCandidate> |
getOfferedCandidates()
|
java.util.Iterator |
getValidRemoteCandidates()
Get an iterator for the list of valid (ie, checked) remote candidates. |
boolean |
isFullyEstablished()
Return true if the transport is fully established. |
| 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 |
| Field Detail |
|---|
public static final int CANDIDATES_ACCEPT_PERIOD
| Constructor Detail |
|---|
public TransportNegotiator(JingleSession session,
TransportResolver transResolver,
ContentNegotiator parentNegotiator)
js - The Jingle sessiontransResolver - The JingleTransportManager to use| Method Detail |
|---|
public abstract JingleTransport getJingleTransport(TransportCandidate cand)
public abstract boolean acceptableTransportCandidate(TransportCandidate tc,
java.util.List<TransportCandidate> localCandidates)
public final TransportCandidate getBestLocalCandidate()
public TransportCandidate getAcceptedLocalCandidate()
public void close()
close in class JingleNegotiatorpublic JingleTransport getJingleTransport()
public java.util.List<TransportCandidate> getOfferedCandidates()
public abstract TransportCandidate getBestRemoteCandidate()
public final boolean isFullyEstablished()
public final java.util.Iterator getValidRemoteCandidates()
public final java.util.List<IQ> dispatchIncomingPacket(IQ iq,
java.lang.String id)
throws XMPPException
dispatchIncomingPacket in class JingleNegotiatoriq - the packet receivedid - the ID of the response that will be sent
XMPPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||