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