Interface JingleSessionListener
-
- All Superinterfaces:
JingleListener
- All Known Implementing Classes:
BridgedTransportManager
,FixedTransportManager
,ICETransportManager
,JingleManager
public interface JingleSessionListener extends JingleListener
Interface for listening for session events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
sessionClosed(java.lang.String reason, JingleSession jingleSession)
Notification that the session was closed normally.void
sessionClosedOnError(XMPPException e, JingleSession jingleSession)
Notification that the session was closed due to an exception.void
sessionDeclined(java.lang.String reason, JingleSession jingleSession)
Notification that the session was declined.void
sessionEstablished(PayloadType pt, TransportCandidate remoteCandidate, TransportCandidate localCandidate, JingleSession jingleSession)
Notification that the session has been established.void
sessionMediaReceived(JingleSession jingleSession, java.lang.String participant)
Notification that the Media has arrived for this session.void
sessionRedirected(java.lang.String redirection, JingleSession jingleSession)
Notification that the session was redirected.
-
-
-
Method Detail
-
sessionEstablished
void sessionEstablished(PayloadType pt, TransportCandidate remoteCandidate, TransportCandidate localCandidate, JingleSession jingleSession) throws SmackException.NotConnectedException, java.lang.InterruptedException
Notification that the session has been established. Arguments specify the payload type and transport to use.- Parameters:
pt
- the Payload tyep to useremoteCandidate
- the remote candidate to use for connecting to the remote service.localCandidate
- 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
void sessionDeclined(java.lang.String reason, JingleSession jingleSession)
Notification that the session was declined.- Parameters:
reason
- the reason (if any).jingleSession
- Session that called the method
-
sessionRedirected
void sessionRedirected(java.lang.String redirection, JingleSession jingleSession)
Notification that the session was redirected.- Parameters:
redirection
- TODO javadoc me pleasejingleSession
- session that called the method
-
sessionClosed
void sessionClosed(java.lang.String reason, JingleSession jingleSession)
Notification that the session was closed normally.- Parameters:
reason
- the reason (if any).jingleSession
- Session that called the method
-
sessionClosedOnError
void sessionClosedOnError(XMPPException e, JingleSession jingleSession)
Notification that the session was closed due to an exception.- Parameters:
e
- the exception.jingleSession
- session that called the method
-
sessionMediaReceived
void sessionMediaReceived(JingleSession jingleSession, java.lang.String participant)
Notification that the Media has arrived for this session.- Parameters:
jingleSession
- session that called the methodparticipant
- description of the participant
-
-