Class 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 Detail

      • BridgedResolver

        public BridgedResolver​(org.jivesoftware.smack.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 org.jivesoftware.smack.XMPPException,
                            org.jivesoftware.smack.SmackException.NotConnectedException,
                            java.lang.InterruptedException
        Resolve Bridged Candidate. The BridgedResolver takes the IP address and ports of a jmf proxy service.
        Specified by:
        resolve in class TransportResolver
        Parameters:
        session - the Jingle session.
        Throws:
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
        java.lang.InterruptedException - if the calling thread was interrupted.
        org.jivesoftware.smack.XMPPException - if an XMPP protocol error was received.
      • initialize

        public void initialize()
                        throws org.jivesoftware.smack.SmackException.SmackMessageException,
                               org.jivesoftware.smack.XMPPException.XMPPErrorException,
                               java.lang.InterruptedException,
                               org.jivesoftware.smack.SmackException.NoResponseException,
                               org.jivesoftware.smack.SmackException.NotConnectedException
        Description copied from class: TransportResolver
        Initialize the Resolver.
        Specified by:
        initialize in class TransportResolver
        Throws:
        java.lang.InterruptedException - if the calling thread was interrupted.
        org.jivesoftware.smack.SmackException.SmackMessageException
        org.jivesoftware.smack.XMPPException.XMPPErrorException
        org.jivesoftware.smack.SmackException.NoResponseException
        org.jivesoftware.smack.SmackException.NotConnectedException
      • cancel

        public void cancel()
                    throws org.jivesoftware.smack.XMPPException
        Description copied from class: TransportResolver
        Cancel any asynchronous resolution operation.
        Specified by:
        cancel in class TransportResolver
        Throws:
        org.jivesoftware.smack.XMPPException - if an XMPP protocol error was received.
      • getLocalHost

        public static java.lang.String getLocalHost()