Interface JingleTransportListener
-
- All Superinterfaces:
JingleListener
public interface JingleTransportListener extends JingleListener
Interface for listening to transport events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransportClosed(TransportCandidate cand)Notification that a transport must be cancelled.voidtransportClosedOnError(XMPPException e)Notification that the transport was closed due to an exception.voidtransportEstablished(TransportCandidate local, TransportCandidate remote)Notification that the transport has been established.
-
-
-
Method Detail
-
transportEstablished
void transportEstablished(TransportCandidate local, TransportCandidate remote) throws SmackException.NotConnectedException, InterruptedException, SmackException.NoResponseException, XMPPException.XMPPErrorException
Notification that the transport has been established.- Parameters:
local- The transport candidate that has been used for listening in the local machineremote- The transport candidate that has been used for transmitting to the remote machine- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NoResponseException- if there was no response from the remote entity.
-
transportClosed
void transportClosed(TransportCandidate cand)
Notification that a transport must be cancelled.- Parameters:
cand- The transport candidate that must be cancelled. A value of "null" means all the transports for this session.
-
transportClosedOnError
void transportClosedOnError(XMPPException e)
Notification that the transport was closed due to an exception.- Parameters:
e- the exception.
-
-