Class JingleS5BTransportManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.transports.JingleTransportManager<JingleS5BTransport>
-
- org.jivesoftware.smackx.jingle.transports.jingle_s5b.JingleS5BTransportManager
-
- All Implemented Interfaces:
ConnectionListener
public final class JingleS5BTransportManager extends JingleTransportManager<JingleS5BTransport>
Manager for Jingle SOCKS5 Bytestream transports (XEP-0261).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticated(XMPPConnection connection, boolean resumed)
Notification that the connection has been authenticated.Jingle
createCandidateActivated(FullJid remote, FullJid initiator, java.lang.String sessionId, JingleContent.Senders senders, JingleContent.Creator creator, java.lang.String name, java.lang.String streamId, java.lang.String candidateId)
Jingle
createCandidateError(FullJid remote, FullJid initiator, java.lang.String sessionId, JingleContent.Senders senders, JingleContent.Creator creator, java.lang.String name, java.lang.String streamId)
Jingle
createCandidateUsed(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Senders contentSenders, JingleContent.Creator contentCreator, java.lang.String contentName, java.lang.String streamId, java.lang.String candidateId)
Jingle
createProxyError(FullJid remote, FullJid initiator, java.lang.String sessionId, JingleContent.Senders senders, JingleContent.Creator creator, java.lang.String name, java.lang.String streamId)
java.util.List<Bytestream.StreamHost>
determineStreamHostInfo(java.util.List<Jid> proxies)
java.util.List<Bytestream.StreamHost>
getAvailableStreamHosts()
static JingleS5BTransportManager
getInstanceFor(XMPPConnection connection)
java.util.List<Bytestream.StreamHost>
getLocalStreamHosts()
java.lang.String
getNamespace()
static boolean
isUseExternalCandidates()
static boolean
isUseLocalCandidates()
static void
setUseExternalCandidates(boolean externalCandidates)
static void
setUseLocalCandidates(boolean localCandidates)
JingleTransportSession<JingleS5BTransport>
transportSession(JingleSession jingleSession)
-
Methods inherited from class org.jivesoftware.smackx.jingle.transports.JingleTransportManager
connected, connection, connectionClosed, connectionClosedOnError, getConnection
-
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
connecting
-
-
-
-
Method Detail
-
getInstanceFor
public static JingleS5BTransportManager getInstanceFor(XMPPConnection connection)
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in classJingleTransportManager<JingleS5BTransport>
-
transportSession
public JingleTransportSession<JingleS5BTransport> transportSession(JingleSession jingleSession)
- Specified by:
transportSession
in classJingleTransportManager<JingleS5BTransport>
-
getAvailableStreamHosts
public java.util.List<Bytestream.StreamHost> getAvailableStreamHosts() throws XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException, SmackException.NoResponseException
- Throws:
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.InterruptedException
SmackException.NoResponseException
-
getLocalStreamHosts
public java.util.List<Bytestream.StreamHost> getLocalStreamHosts()
-
determineStreamHostInfo
public java.util.List<Bytestream.StreamHost> determineStreamHostInfo(java.util.List<Jid> proxies)
-
authenticated
public void authenticated(XMPPConnection connection, boolean resumed)
Description copied from interface:ConnectionListener
Notification that the connection has been authenticated.- Parameters:
connection
- the XMPPConnection which successfully authenticated.resumed
- true if a previous XMPP session's stream was resumed.
-
createCandidateUsed
public Jingle createCandidateUsed(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Senders contentSenders, JingleContent.Creator contentCreator, java.lang.String contentName, java.lang.String streamId, java.lang.String candidateId)
-
createCandidateError
public Jingle createCandidateError(FullJid remote, FullJid initiator, java.lang.String sessionId, JingleContent.Senders senders, JingleContent.Creator creator, java.lang.String name, java.lang.String streamId)
-
createProxyError
public Jingle createProxyError(FullJid remote, FullJid initiator, java.lang.String sessionId, JingleContent.Senders senders, JingleContent.Creator creator, java.lang.String name, java.lang.String streamId)
-
createCandidateActivated
public Jingle createCandidateActivated(FullJid remote, FullJid initiator, java.lang.String sessionId, JingleContent.Senders senders, JingleContent.Creator creator, java.lang.String name, java.lang.String streamId, java.lang.String candidateId)
-
setUseLocalCandidates
public static void setUseLocalCandidates(boolean localCandidates)
-
setUseExternalCandidates
public static void setUseExternalCandidates(boolean externalCandidates)
-
isUseLocalCandidates
public static boolean isUseLocalCandidates()
-
isUseExternalCandidates
public static boolean isUseExternalCandidates()
-
-