Class ICETransportManager

    • Constructor Detail

      • ICETransportManager

        public ICETransportManager​(org.jivesoftware.smack.XMPPConnection xmppConnection,
                                   java.lang.String server,
                                   int port)
    • Method Detail

      • createResolver

        protected TransportResolver createResolver​(JingleSession session)
                                            throws org.jivesoftware.smack.SmackException,
                                                   java.lang.InterruptedException
        Description copied from class: JingleTransportManager
        Create a Transport Resolver instance according to the implementation.
        Specified by:
        createResolver in class JingleTransportManager
        Parameters:
        session - the jingle session.
        Returns:
        the TransportResolver
        Throws:
        org.jivesoftware.smack.SmackException - if Smack detected an exceptional situation.
        java.lang.InterruptedException - if the calling thread was interrupted.
      • sessionEstablished

        public void sessionEstablished​(PayloadType pt,
                                       TransportCandidate rc,
                                       TransportCandidate lc,
                                       JingleSession jingleSession)
                                throws org.jivesoftware.smack.SmackException.NotConnectedException,
                                       java.lang.InterruptedException
        Description copied from interface: JingleSessionListener
        Notification that the session has been established. Arguments specify the payload type and transport to use.
        Specified by:
        sessionEstablished in interface JingleSessionListener
        Parameters:
        pt - the Payload tyep to use
        rc - the remote candidate to use for connecting to the remote service.
        lc - the local candidate where we must listen for connections
        jingleSession - Session that called the method
        Throws:
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
        java.lang.InterruptedException - if the calling thread was interrupted.
      • sessionDeclined

        public void sessionDeclined​(java.lang.String reason,
                                    JingleSession jingleSession)
        Description copied from interface: JingleSessionListener
        Notification that the session was declined.
        Specified by:
        sessionDeclined in interface JingleSessionListener
        Parameters:
        reason - the reason (if any).
        jingleSession - Session that called the method
      • sessionRedirected

        public void sessionRedirected​(java.lang.String redirection,
                                      JingleSession jingleSession)
        Description copied from interface: JingleSessionListener
        Notification that the session was redirected.
        Specified by:
        sessionRedirected in interface JingleSessionListener
        Parameters:
        redirection - TODO javadoc me please
        jingleSession - session that called the method
      • sessionClosed

        public void sessionClosed​(java.lang.String reason,
                                  JingleSession jingleSession)
        Description copied from interface: JingleSessionListener
        Notification that the session was closed normally.
        Specified by:
        sessionClosed in interface JingleSessionListener
        Parameters:
        reason - the reason (if any).
        jingleSession - Session that called the method
      • sessionClosedOnError

        public void sessionClosedOnError​(org.jivesoftware.smack.XMPPException e,
                                         JingleSession jingleSession)
        Description copied from interface: JingleSessionListener
        Notification that the session was closed due to an exception.
        Specified by:
        sessionClosedOnError in interface JingleSessionListener
        Parameters:
        e - the exception.
        jingleSession - session that called the method
      • sessionMediaReceived

        public void sessionMediaReceived​(JingleSession jingleSession,
                                         java.lang.String participant)
        Description copied from interface: JingleSessionListener
        Notification that the Media has arrived for this session.
        Specified by:
        sessionMediaReceived in interface JingleSessionListener
        Parameters:
        jingleSession - session that called the method
        participant - description of the participant