2017-07-19 15:17:12 +02:00
|
|
|
package org.jivesoftware.smackx.jingle3.internal;
|
|
|
|
|
2017-07-19 23:15:17 +02:00
|
|
|
import org.jivesoftware.smack.XMPPConnection;
|
2017-07-19 15:17:12 +02:00
|
|
|
import org.jivesoftware.smackx.jingle3.element.JingleContentTransportElement;
|
|
|
|
import org.jivesoftware.smackx.jingle3.element.JingleContentTransportInfoElement;
|
|
|
|
import org.jivesoftware.smackx.jingle3.transport.BytestreamSessionEstablishedListener;
|
|
|
|
|
2017-07-19 23:15:17 +02:00
|
|
|
import org.jxmpp.jid.FullJid;
|
|
|
|
|
2017-07-19 15:17:12 +02:00
|
|
|
/**
|
|
|
|
* Created by vanitas on 18.07.17.
|
|
|
|
*/
|
|
|
|
public abstract class Transport<D extends JingleContentTransportElement> {
|
|
|
|
|
|
|
|
public abstract D getElement();
|
|
|
|
|
|
|
|
public abstract String getNamespace();
|
|
|
|
|
2017-07-19 23:15:17 +02:00
|
|
|
public abstract void establishIncomingBytestreamSession(FullJid peer,
|
|
|
|
String transportSessionId,
|
|
|
|
BytestreamSessionEstablishedListener listener,
|
|
|
|
XMPPConnection connection);
|
|
|
|
|
|
|
|
public abstract void establishOutgoingBytestreamSession(FullJid peer,
|
|
|
|
String transportSessionId,
|
|
|
|
BytestreamSessionEstablishedListener listener,
|
|
|
|
XMPPConnection connection);
|
2017-07-19 15:17:12 +02:00
|
|
|
|
2017-07-19 23:15:17 +02:00
|
|
|
public abstract void setPeersProposal(Transport<?> peersProposal);
|
2017-07-19 15:17:12 +02:00
|
|
|
|
2017-07-19 23:15:17 +02:00
|
|
|
public abstract void handleTransportInfo(JingleContentTransportInfoElement info);
|
2017-07-19 15:17:12 +02:00
|
|
|
}
|