diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-04-11 22:49:26 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-04-11 22:49:26 +0200 |
commit | 259bb446cac55ea7367488dfd63eb2b8a3eb6139 (patch) | |
tree | 7cbbe509a955bd4b2b1820f33a24d8b8045bd801 /src/eu/siacs/conversations/xmpp/jingle/stanzas | |
parent | c0e0a7086902a9d5cfbe88c4aa220abdf2ee3dde (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.java | 13 |
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"); + } + } } |