org.jivesoftware.smackx.jingle.nat
Class BridgedResolver

java.lang.Object
  extended by org.jivesoftware.smackx.jingle.nat.TransportResolver
      extended by org.jivesoftware.smackx.jingle.nat.BridgedResolver

public class BridgedResolver
extends TransportResolver

Bridged Resolver use a RTPBridge Service to add a relayed candidate. A very reliable solution for NAT Traversal.

The resolver verify is the XMPP Server that the client is connected offer this service. If the server supports, a candidate is requested from the service. The resolver adds this candidate


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingle.nat.TransportResolver
TransportResolver.Type
 
Field Summary
 
Fields inherited from class org.jivesoftware.smackx.jingle.nat.TransportResolver
CHECK_TIMEOUT, type
 
Constructor Summary
BridgedResolver(XMPPConnection connection)
          Constructor.
 
Method Summary
 void cancel()
          Cancel any asynchronous resolution operation.
static java.lang.String getLocalHost()
           
 void initialize()
          Initialize the Resolver
 void resolve(JingleSession session)
          Resolve Bridged Candidate.
 
Methods inherited from class org.jivesoftware.smackx.jingle.nat.TransportResolver
addListener, clear, getCandidate, getCandidateCount, getCandidates, getCandidatesList, getListenersList, getPreferredCandidate, getType, initializeAndWait, isInitialized, isResolved, isResolving, removeListener, setInitialized, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgedResolver

public BridgedResolver(XMPPConnection connection)
Constructor. A Bridged Resolver need a XMPPConnection to connect to a RTP Bridge.

Method Detail

resolve

public void resolve(JingleSession session)
             throws XMPPException
Resolve Bridged Candidate.

The BridgedResolver takes the IP addresse and ports of a jmf proxy service.

Specified by:
resolve in class TransportResolver
Throws:
XMPPException

initialize

public void initialize()
                throws XMPPException
Description copied from class: TransportResolver
Initialize the Resolver

Specified by:
initialize in class TransportResolver
Throws:
XMPPException

cancel

public void cancel()
            throws XMPPException
Description copied from class: TransportResolver
Cancel any asynchronous resolution operation.

Specified by:
cancel in class TransportResolver
Throws:
XMPPException

getLocalHost

public static java.lang.String getLocalHost()