mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-12 02:29:38 +02:00
Fix IBB
This commit is contained in:
parent
4728aa4452
commit
830b2deb2e
11 changed files with 190 additions and 101 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue