Package de.fu_berlin.inf.dpp.net

Examples of de.fu_berlin.inf.dpp.net.JID


                    return false;

                if (packet.getFrom() == null)
                    return false;

                JID fromJid = new JID(packet.getFrom());
                if (peer.equals(fromJid) == false)
                    return false;

                // increase infinite (logarithmic) progress
                monitor.setWorkRemaining(100);
View Full Code Here


        for (User user : fromUsers) {
            fromUserJIDs.add(user.getJID());
        }
        try {
            Packet result;
            JID jid;
            while (fromUserJIDs.size() > 0) {
                if (monitor.isCanceled())
                    throw new LocalCancellationException();

                // Wait up to [timeout] milliseconds for a result.
                result = collector.nextResult(100);
                if (result == null)
                    continue;

                jid = new JID(result.getFrom());
                if (!fromUserJIDs.remove(jid)) {
                    log.warn("Buddy list confirmation from unknown buddy: "
                        + Utils.prefix(jid));
                } else {
                    log.debug("Buddy list confirmation from: "
View Full Code Here

                + " which is currently disabled:", new StackTrace());
            return;
        }

        for (Entry<JID, Integer> entry : expectedSequenceNumbers.entrySet()) {
            JID recipient = entry.getKey();
            int expectedSequenceNumber = entry.getValue();
            log.info("Requesting old activityDataObject (sequence number="
                + expectedSequenceNumber + "," + andup + ") from "
                + Utils.prefix(recipient));
            sendMessageToUser(recipient,
View Full Code Here

            return;
        }
        progress.beginTask("Sending FileList", 100);

        TransferDescription data = TransferDescription
            .createFileListTransferDescription(recipient, new JID(user),
                sessionID.getValue(), processID);

        log.debug("fileLists.size(): " + fileLists.size());

        int length = fileLists.size();
View Full Code Here

            return;
        }
        progress.beginTask("Sending Archive", 100);

        TransferDescription transfer = TransferDescription
            .createArchiveTransferDescription(recipient, new JID(user),
                sessionID.getValue(), invitationID);

        progress.subTask("Reading archive");

        byte[] content = archive == null ? new byte[0] : FileUtils
View Full Code Here

     * participants of the given {@link ISarosSession}.
     */
    public void sendMessageToAll(ISarosSession sarosSession,
        PacketExtension extension) {

        JID myJID = sarosNet.getMyJID();

        for (User participant : sarosSession.getParticipants()) {

            if (participant.getJID().equals(myJID))
                continue;
View Full Code Here

                    public void run() {
                        if (sessionFilter.accept(packet)) {
                            try {
                                Message message = (Message) packet;

                                JID fromJID = new JID(message.getFrom());

                                // Change the input method to get the right
                                // chats
                                putIncomingChat(fromJID, message.getThread());
                            } catch (Exception e) {
View Full Code Here

            return result;
        }

        for (Entry<JID, JupiterActivity> entry : outgoing.entrySet()) {

            JID jid = entry.getKey();
            User to = sarosSession.getUser(jid);

            if (to == null) {
                log.error("Unknown buddy in transformation result: "
                    + Utils.prefix(jid));
View Full Code Here

                server = ""; //$NON-NLS-1$
            }

            this.createAccountButton.setEnabled(false);
            this.enterXMPPAccountComposite.setEnabled(false);
            this.enterXMPPAccountComposite.setJID(new JID(jid));
            this.enterXMPPAccountComposite.setPassword(password);
            this.enterXMPPAccountComposite.setServer(server);
        }

        getContainer().getShell().setVisible(true);
View Full Code Here

            return result;
        }

        for (Entry<JID, ChecksumActivity> entry : outgoing.entrySet()) {

            JID jid = entry.getKey();
            User to = sarosSession.getUser(jid);

            if (to == null) {
                log.error("Unknown buddy in transformation result: "
                    + Utils.prefix(jid));
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.net.JID

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.