Package nu.fw.jeti.plugins.jingle

Examples of nu.fw.jeti.plugins.jingle.XMPPException


                acceptedLocalCandidate = resolver.getCandidate(i);
                return;
            }
        }
        //System.out.println("BEST: " + bestLocalCandidate.getIp());
        throw new XMPPException("Local transport candidate has not be offered.");
    }
View Full Code Here


         * An error has occurred.
         *
         * @throws XMPPException
         */
        public void eventError(Jingle iq) throws XMPPException {
            triggerSessionClosedOnError(new XMPPException(iq.getError().getFirstXMPPError().getError()));
            super.eventError(iq);
        }
View Full Code Here

         * An error has occurred.
         *
         * @throws XMPPException
         */
        public void eventError(Jingle iq) throws XMPPException {
            triggerSessionClosedOnError(new XMPPException(iq.getError().getFirstXMPPError().getError()));
            super.eventError(iq);
        }
View Full Code Here

            setSid(packet.getSid());

            respond(packet);
        }
        else {
            throw new XMPPException(
                    "Session request with null Jingle packet.");
        }

    }
View Full Code Here

         * An error has occurred.
         *
         * @throws XMPPException
         */
        public void eventError(Jingle iq) throws XMPPException {
            triggerSessionClosedOnError(new XMPPException(iq.getError().getFirstXMPPError().getError()));
            super.eventError(iq);
        }
View Full Code Here

        ArrayList jda = jin.getDescriptionsList();

        if (jin.getAction().equals(Jingle.Action.SESSIONACCEPT)) {

            if (jda.size() > 1) {
                throw new XMPPException(
                        "Unsupported feature: the number of accepted content descriptions is greater than 1.");
            }
            else if (jda.size() == 1) {
                JingleContentDescription jd = (JingleContentDescription) jda.get(0);
                if (jd.getJinglePayloadTypesCount() > 1) {
                    throw new XMPPException(
                            "Unsupported feature: the number of accepted payload types is greater than 1.");
                }
                if (jd.getJinglePayloadTypesCount() == 1) {
                    JinglePayloadType jpt = (JinglePayloadType) jd
                            .getJinglePayloadTypesList().get(0);
View Full Code Here

        ArrayList jta = jin.getTransportsList();
        TransportCandidate acceptedLocalCandidate = null;

        if (jin.getAction().equals(Jingle.Action.SESSIONACCEPT)) {
            if (jta.size() > 1) {
                throw new XMPPException(
                        "Unsupported feature: the number of accepted transports is greater than 1.");
            }
            else if (jta.size() == 1) {
                JingleTransport jt = (JingleTransport) jta.get(0);

                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);
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.jingle.XMPPException

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.