org.jivesoftware.smackx.jingle.nat
Class BridgedResolver
java.lang.Object
org.jivesoftware.smackx.jingle.nat.TransportResolver
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
|
Constructor Summary |
BridgedResolver(XMPPConnection connection)
Constructor. |
| 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 |
BridgedResolver
public BridgedResolver(XMPPConnection connection)
- Constructor.
A Bridged Resolver need a XMPPConnection to connect to a RTP Bridge.
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()