1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-12 02:29:38 +02:00
This commit is contained in:
vanitasvitae 2017-06-10 17:16:22 +02:00
parent 4728aa4452
commit 830b2deb2e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
11 changed files with 190 additions and 101 deletions

View file

@ -22,6 +22,7 @@ import org.jivesoftware.smackx.disco.ServiceDiscoveryManager;
import org.jivesoftware.smackx.jingle.element.Jingle;
import org.jivesoftware.smackx.jingle.element.JingleContentTransport;
import org.jivesoftware.smackx.jingle.provider.JingleContentTransportProvider;
import org.jxmpp.jid.FullJid;
/**
* This class defines the shape that JingleTransportManager must be of.
@ -40,7 +41,7 @@ public abstract class AbstractJingleTransportManager<D extends JingleContentTran
public abstract JingleTransportHandler<D> createJingleTransportHandler(JingleSessionHandler sessionHandler);
public abstract D createJingleContentTransport(JingleManager.FullJidAndSessionId target) throws Exception;
public abstract D createJingleContentTransport(FullJid target) throws Exception;
public abstract D createJingleContentTransport(Jingle remotesRequest) throws Exception;

View file

@ -199,7 +199,9 @@ public final class Jingle extends IQ {
}
public Jingle build() {
return new Jingle(sid, action, initiator, responder, reason, contents);
Jingle jingle = new Jingle(sid, action, initiator, responder, reason, contents);
jingle.setType(Type.set);
return jingle;
}
}
}

View file

@ -5,6 +5,8 @@ package org.jivesoftware.smackx.jingle.exception;
*/
public class JingleTransportFailureException extends Exception {
private static final long serialVersionUID = 1L;
public JingleTransportFailureException(Throwable wrapped) {
super(wrapped);
}