Class ICETransportManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.nat.JingleTransportManager
-
- org.jivesoftware.smackx.jingleold.nat.ICETransportManager
-
- All Implemented Interfaces:
CreatedJingleSessionListener,JingleListener,JingleSessionListener
public class ICETransportManager extends JingleTransportManager implements JingleSessionListener, CreatedJingleSessionListener
-
-
Constructor Summary
Constructors Constructor Description ICETransportManager(XMPPConnection xmppConnection, java.lang.String server, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransportResolvercreateResolver(JingleSession session)Create a Transport Resolver instance according to the implementation.voidsessionClosed(java.lang.String reason, JingleSession jingleSession)Notification that the session was closed normally.voidsessionClosedOnError(XMPPException e, JingleSession jingleSession)Notification that the session was closed due to an exception.voidsessionCreated(JingleSession jingleSession)voidsessionDeclined(java.lang.String reason, JingleSession jingleSession)Notification that the session was declined.voidsessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc, JingleSession jingleSession)Notification that the session has been established.voidsessionMediaReceived(JingleSession jingleSession, java.lang.String participant)Notification that the Media has arrived for this session.voidsessionRedirected(java.lang.String redirection, JingleSession jingleSession)Notification that the session was redirected.-
Methods inherited from class org.jivesoftware.smackx.jingleold.nat.JingleTransportManager
getResolver
-
-
-
-
Constructor Detail
-
ICETransportManager
public ICETransportManager(XMPPConnection xmppConnection, java.lang.String server, int port)
-
-
Method Detail
-
createResolver
protected TransportResolver createResolver(JingleSession session) throws SmackException, java.lang.InterruptedException
Description copied from class:JingleTransportManagerCreate a Transport Resolver instance according to the implementation.- Specified by:
createResolverin classJingleTransportManager- Parameters:
session- the jingle session.- Returns:
- the TransportResolver
- Throws:
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 SmackException.NotConnectedException, java.lang.InterruptedException
Description copied from interface:JingleSessionListenerNotification that the session has been established. Arguments specify the payload type and transport to use.- Specified by:
sessionEstablishedin interfaceJingleSessionListener- Parameters:
pt- the Payload tyep to userc- the remote candidate to use for connecting to the remote service.lc- the local candidate where we must listen for connectionsjingleSession- Session that called the method- Throws:
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:JingleSessionListenerNotification that the session was declined.- Specified by:
sessionDeclinedin interfaceJingleSessionListener- 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:JingleSessionListenerNotification that the session was redirected.- Specified by:
sessionRedirectedin interfaceJingleSessionListener- Parameters:
redirection- TODO javadoc me pleasejingleSession- session that called the method
-
sessionClosed
public void sessionClosed(java.lang.String reason, JingleSession jingleSession)
Description copied from interface:JingleSessionListenerNotification that the session was closed normally.- Specified by:
sessionClosedin interfaceJingleSessionListener- Parameters:
reason- the reason (if any).jingleSession- Session that called the method
-
sessionClosedOnError
public void sessionClosedOnError(XMPPException e, JingleSession jingleSession)
Description copied from interface:JingleSessionListenerNotification that the session was closed due to an exception.- Specified by:
sessionClosedOnErrorin interfaceJingleSessionListener- Parameters:
e- the exception.jingleSession- session that called the method
-
sessionMediaReceived
public void sessionMediaReceived(JingleSession jingleSession, java.lang.String participant)
Description copied from interface:JingleSessionListenerNotification that the Media has arrived for this session.- Specified by:
sessionMediaReceivedin interfaceJingleSessionListener- Parameters:
jingleSession- session that called the methodparticipant- description of the participant
-
sessionCreated
public void sessionCreated(JingleSession jingleSession)
- Specified by:
sessionCreatedin interfaceCreatedJingleSessionListener
-
-