Class JingleTransportManager<D extends JingleContentTransport>
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.transports.JingleTransportManager<D>
-
- Type Parameters:
D
- JingleContentTransport.
- All Implemented Interfaces:
ConnectionListener
- Direct Known Subclasses:
JingleIBBTransportManager
,JingleS5BTransportManager
public abstract class JingleTransportManager<D extends JingleContentTransport> extends Object implements ConnectionListener
Manager for a JingleTransport method.
-
-
Constructor Summary
Constructors Constructor Description JingleTransportManager(XMPPConnection connection)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
connected(XMPPConnection connection)
Notification that the connection has been successfully connected to the remote endpoint (e.g.XMPPConnection
connection()
void
connectionClosed()
Notification that the connection was closed normally.void
connectionClosedOnError(Exception e)
Notification that the connection was closed due to an exception.XMPPConnection
getConnection()
abstract String
getNamespace()
abstract JingleTransportSession<D>
transportSession(JingleSession jingleSession)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.ConnectionListener
authenticated, connecting
-
-
-
-
Constructor Detail
-
JingleTransportManager
public JingleTransportManager(XMPPConnection connection)
-
-
Method Detail
-
getConnection
public XMPPConnection getConnection()
-
connection
public XMPPConnection connection()
-
getNamespace
public abstract String getNamespace()
-
transportSession
public abstract JingleTransportSession<D> transportSession(JingleSession jingleSession)
-
connected
public void connected(XMPPConnection connection)
Description copied from interface:ConnectionListener
Notification that the connection has been successfully connected to the remote endpoint (e.g. the XMPP server).Note that the connection is likely not yet authenticated and therefore only limited operations like registering an account may be possible.
- Specified by:
connected
in interfaceConnectionListener
- Parameters:
connection
- the XMPPConnection which successfully connected to its endpoint.
-
connectionClosed
public void connectionClosed()
Description copied from interface:ConnectionListener
Notification that the connection was closed normally.- Specified by:
connectionClosed
in interfaceConnectionListener
-
connectionClosedOnError
public void connectionClosedOnError(Exception e)
Description copied from interface:ConnectionListener
Notification that the connection was closed due to an exception. When abruptly disconnected it is possible for the connection to try reconnecting to the server.- Specified by:
connectionClosedOnError
in interfaceConnectionListener
- Parameters:
e
- the exception.
-
-