Class BridgedTransportManager

java.lang.Object
org.jivesoftware.smackx.jingleold.nat.JingleTransportManager
org.jivesoftware.smackx.jingleold.nat.BridgedTransportManager
All Implemented Interfaces:
CreatedJingleSessionListener, JingleListener, JingleSessionListener

public class BridgedTransportManager extends JingleTransportManager implements JingleSessionListener, CreatedJingleSessionListener
A Jingle Transport Manager implementation to be used for NAT Networks. This kind of transport needs that the connected XMPP Server provide a Bridge Service. (http://www.jivesoftware.com/protocol/rtpbridge) To relay the jmf outside the NAT.
  • Constructor Details

    • BridgedTransportManager

      public BridgedTransportManager(org.jivesoftware.smack.XMPPConnection xmppConnection)
  • Method Details

    • createResolver

      protected TransportResolver createResolver(JingleSession session)
      Return the correspondent resolver
      Specified by:
      createResolver in class JingleTransportManager
      Parameters:
      session - correspondent Jingle Session
      Returns:
      resolver TODO javadoc me please
    • sessionEstablished

      public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc, JingleSession jingleSession) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException
      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 type 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.
      InterruptedException - if the calling thread was interrupted.
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
    • sessionDeclined

      public void sessionDeclined(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(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(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, 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
    • sessionCreated

      public void sessionCreated(JingleSession jingleSession)
      Specified by:
      sessionCreated in interface CreatedJingleSessionListener