mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 20:42:06 +01:00
More feature-not-implemented and remove crap
This commit is contained in:
parent
cac35d74b4
commit
034b7f3844
2 changed files with 5 additions and 103 deletions
|
@ -27,6 +27,7 @@ import org.jivesoftware.smack.SmackException;
|
||||||
import org.jivesoftware.smack.XMPPConnection;
|
import org.jivesoftware.smack.XMPPConnection;
|
||||||
import org.jivesoftware.smack.XMPPException;
|
import org.jivesoftware.smack.XMPPException;
|
||||||
import org.jivesoftware.smack.packet.IQ;
|
import org.jivesoftware.smack.packet.IQ;
|
||||||
|
import org.jivesoftware.smack.packet.XMPPError;
|
||||||
import org.jivesoftware.smack.util.Async;
|
import org.jivesoftware.smack.util.Async;
|
||||||
import org.jivesoftware.smackx.jingle.JingleDescriptionManager;
|
import org.jivesoftware.smackx.jingle.JingleDescriptionManager;
|
||||||
import org.jivesoftware.smackx.jingle.JingleManager;
|
import org.jivesoftware.smackx.jingle.JingleManager;
|
||||||
|
@ -289,6 +290,8 @@ public class JingleSession {
|
||||||
}
|
}
|
||||||
|
|
||||||
private IQ handleContentRemove(final JingleElement request) {
|
private IQ handleContentRemove(final JingleElement request) {
|
||||||
|
return IQ.createErrorResponse(request, XMPPError.Condition.feature_not_implemented);
|
||||||
|
/*
|
||||||
for (JingleContentElement r : request.getContents()) {
|
for (JingleContentElement r : request.getContents()) {
|
||||||
final JingleContent removed = contents.get(r.getName());
|
final JingleContent removed = contents.get(r.getName());
|
||||||
|
|
||||||
|
@ -307,110 +310,9 @@ public class JingleSession {
|
||||||
}
|
}
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
return IQ.createResultIQ(request);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ############## Processed further down ############## */
|
|
||||||
|
|
||||||
private IQ handleContentModify(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleContentModify(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleDescriptionInfo(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleDescriptionInfo(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleSecurityInfo(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleSecurityInfo(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleSessionInfo(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleSessionInfo(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleTransportAccept(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleTransportAccept(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleTransportInfo(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleTransportInfo(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleTransportReject(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleTransportReject(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IQ handleTransportReplace(final JingleElement request) {
|
|
||||||
final JingleContent content = getSoleAffectedContentOrThrow(request);
|
|
||||||
Async.go(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
content.handleTransportReplace(request, jingleManager.getConnection());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ################ Other getters and setters ############### */
|
|
||||||
|
|
||||||
public FullJid getInitiator() {
|
public FullJid getInitiator() {
|
||||||
return initiator;
|
return initiator;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ public final class JingleS5BTransportManager extends Manager implements JingleTr
|
||||||
private List<Bytestream.StreamHost> localStreamHosts = null;
|
private List<Bytestream.StreamHost> localStreamHosts = null;
|
||||||
private List<Bytestream.StreamHost> availableStreamHosts = null;
|
private List<Bytestream.StreamHost> availableStreamHosts = null;
|
||||||
|
|
||||||
public static boolean useLocalCandidates = true;
|
public static boolean useLocalCandidates = false;
|
||||||
public static boolean useExternalCandidates = true;
|
public static boolean useExternalCandidates = true;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
Loading…
Reference in a new issue