aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/jingle/stanzas
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-21 20:39:57 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-21 20:39:57 +0200
commitd151ad90311f74df8bcd49ad3c9b1e0bc71423ec (patch)
tree430e18eb802b29606b1b26b9ed4494b2e3ae46fe /src/eu/siacs/conversations/xmpp/jingle/stanzas
parent77da0c6b5d3d6925c8018c1eb57fb26d102a937d (diff)
code cleanup
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/stanzas')
-rw-r--r--src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java b/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
index dbd2a9fc..abede91a 100644
--- a/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
+++ b/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
@@ -14,6 +14,12 @@ public class Content extends Element {
public Content() {
super("content");
}
+
+ public Content(String creator, String name) {
+ super("content");
+ this.setAttribute("creator", creator);
+ this.setAttribute("name", name);
+ }
public void setTransportId(String sid) {
this.transportId = sid;
@@ -56,17 +62,6 @@ public class Content extends Element {
return this.transportId;
}
- public void setUsedCandidate(String cid) {
- socks5transport().clearChildren();
- Element usedCandidate = socks5transport().addChild("candidate-used");
- usedCandidate.setAttribute("cid",cid);
- }
-
- public void setCandidateError() {
- socks5transport().clearChildren();
- socks5transport().addChild("candidate-error");
- }
-
public Element socks5transport() {
Element transport = this.findChild("transport", "urn:xmpp:jingle:transports:s5b:1");
if (transport==null) {