Package nu.fw.jeti.plugins.jingle.packet.JingleTransport

Examples of nu.fw.jeti.plugins.jingle.packet.JingleTransport.JingleTransportCandidate


            while (iTrans.hasNext()) {
               JingleTransport trans = (JingleTransport) iTrans.next();

                Iterator iCand = trans.getCandidates();
                while (iCand.hasNext()) {
                    JingleTransportCandidate cand = (JingleTransportCandidate) iCand
                            .next();
                    TransportCandidate transCand = cand.getMediaTransport();
                    result.add(transCand);
                }
            }
        }
View Full Code Here


        trans = getInstance();
    }

    public void startElement(String name, Attributes attr) {
      if (name.equals(JingleTransportCandidate.NODENAME)) {
            JingleTransportCandidate jtc = parseCandidate(attr);
            if (jtc != null) trans.addCandidate(jtc);
        }
        else {
          Log.notParsedXML("Unknown tag \"" + name + "\" in transport element.");
        }
View Full Code Here

                if (jt.getCandidatesCount() > 1) {
                    throw new XMPPException(
                            "Unsupported feature: the number of accepted transport candidates is greater than 1.");
                }
                else if (jt.getCandidatesCount() == 1) {
                    JingleTransportCandidate jtc = (JingleTransportCandidate) jt
                            .getCandidatesList().get(0);
                    acceptedLocalCandidate = jtc.getMediaTransport();
                }
            }
        }

        return acceptedLocalCandidate;
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.jingle.packet.JingleTransport.JingleTransportCandidate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.