mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-06 05:01:12 +01:00
More Jingle Refactoring
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7245 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
ae15ced813
commit
bd176c2515
10 changed files with 375 additions and 316 deletions
|
|
@ -2,6 +2,7 @@ package org.jivesoftware.smackx.packet;
|
|||
|
||||
import org.jivesoftware.smack.packet.PacketExtension;
|
||||
import org.jivesoftware.smackx.jingle.nat.TransportCandidate;
|
||||
import org.jivesoftware.smackx.jingle.nat.ICECandidate;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
@ -303,8 +304,8 @@ public class JingleTransport implements PacketExtension {
|
|||
protected String getChildElements() {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
|
||||
if (transportCandidate != null) {// && transportCandidate instanceof TransportCandidate.Ice) {
|
||||
TransportCandidate.Ice tci = (TransportCandidate.Ice) transportCandidate;
|
||||
if (transportCandidate != null) {// && transportCandidate instanceof ICECandidate) {
|
||||
ICECandidate tci = (ICECandidate) transportCandidate;
|
||||
|
||||
// We convert the transportElement candidate to XML here...
|
||||
buf.append(" generation=\"").append(tci.getGeneration()).append("\"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue