aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/jingle/stanzas
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-11 22:49:26 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-11 22:49:26 +0200
commit259bb446cac55ea7367488dfd63eb2b8a3eb6139 (patch)
tree7cbbe509a955bd4b2b1820f33a24d8b8045bd801 /src/eu/siacs/conversations/xmpp/jingle/stanzas
parentc0e0a7086902a9d5cfbe88c4aa220abdf2ee3dde (diff)
first file transfer between gajim and conversations. still a lot to do though
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/stanzas')
-rw-r--r--src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java b/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
index 5ea4619f4..27d6b9e36 100644
--- a/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
+++ b/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
@@ -43,4 +43,17 @@ public class Content extends Element {
return transport.getChildren();
}
}
+
+ public String getUsedCandidate() {
+ Element transport = this.findChild("transport", "urn:xmpp:jingle:transports:s5b:1");
+ if (transport==null) {
+ return null;
+ }
+ Element usedCandidate = transport.findChild("candidate-used");
+ if (usedCandidate==null) {
+ return null;
+ } else {
+ return usedCandidate.getAttribute("cid");
+ }
+ }
}