Class BridgedResolver
java.lang.Object
org.jivesoftware.smackx.jingleold.nat.TransportResolver
org.jivesoftware.smackx.jingleold.nat.BridgedResolver
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 TransportResolver
TransportResolver.Type -
Field Summary
Fields inherited from class TransportResolver
candidates, CHECK_TIMEOUT, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel any asynchronous resolution operation.static StringvoidInitialize the Resolver.voidresolve(JingleSession session) Resolve Bridged Candidate.Methods inherited from class TransportResolver
addCandidate, addListener, clear, clearCandidates, getCandidate, getCandidateCount, getCandidates, getCandidatesList, getFreePort, getListenersList, getPreferredCandidate, getType, initializeAndWait, isInitialized, isResolved, isResolving, removeListener, setInitialized, setResolveEnd, setResolveInit, setType, triggerCandidateAdded
-
Constructor Details
-
BridgedResolver
Constructor. A Bridged Resolver need an XMPPConnection to connect to a RTP Bridge.- Parameters:
connection- the XMPP connection.
-
-
Method Details
-
resolve
public void resolve(JingleSession session) throws XMPPException, SmackException.NotConnectedException, InterruptedException, SmackException.NoResponseException Resolve Bridged Candidate. The BridgedResolver takes the IP address and ports of a jmf proxy service.- Specified by:
resolvein classTransportResolver- Parameters:
session- the Jingle session.- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.SmackException.NoResponseException- if there was no response from the remote entity.XMPPException- if an XMPP protocol error was received.
-
initialize
public void initialize() throws SmackException.SmackMessageException, XMPPException.XMPPErrorException, InterruptedException, SmackException.NoResponseException, SmackException.NotConnectedExceptionDescription copied from class:TransportResolverInitialize the Resolver.- Specified by:
initializein classTransportResolver- Throws:
InterruptedException- if the calling thread was interrupted.SmackException.SmackMessageExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedException
-
cancel
Description copied from class:TransportResolverCancel any asynchronous resolution operation.- Specified by:
cancelin classTransportResolver- Throws:
XMPPException- if an XMPP protocol error was received.
-
getLocalHost
-