Examples of XMPPException


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

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

         * 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

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

         * 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

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

            setSid(packet.getSid());

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

    }
View Full Code Here

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

         * 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

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

        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

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

        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

Examples of org.jivesoftware.smack.XMPPException

        IQ result = (IQ) collector.nextResult(timeout);
        collector.cancel();

        if (result == null || result.getType() == IQ.Type.ERROR) {
            if(result != null && result.getError() != null) {
                throw new XMPPException(result.getError());
            }
            throw new XMPPException("File transfer could not be initiated.");
        }

        IBBChunk chunk = null;
        int seq = 0;
        while ((chunk = readChunk()) != null) {
View Full Code Here

Examples of org.jivesoftware.smack.XMPPException

        connection.sendPacket(iqPacket);
        IQ response = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
        collector.cancel();
       
        if (response == null) {
          throw new XMPPException("No response from server on status set.");
        }
        if (response.getError() != null) {
          throw new XMPPException("Error . Cause: "+response.getError().getMessage());
        } else if (response.getType() == IQ.Type.ERROR) {
          System.out.println("could not create user....");
          throw new XMPPException("Error . Cause: "+response.getError().getMessage());
        }
        if (response instanceof SessionCount) {
          SessionCount sCount = (SessionCount) response;
          System.out.println("number of sessions: "+sCount.getNumberOfSessions());
        }
View Full Code Here

Examples of org.jivesoftware.smack.XMPPException

            return room;
        }

        Iterator<String> iterator = MultiUserChat.getServiceNames(connection).iterator();
        if (!iterator.hasNext()) {
            throw new XMPPException("Cannot find Multi User Chat service on connection: " + getConnectionMessage(connection));
        }

        String chatServer = iterator.next();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Detected chat server: " + chatServer);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.