Package de.fu_berlin.inf.dpp.invitation

Examples of de.fu_berlin.inf.dpp.invitation.InvitationProcess


    public synchronized InvitationProcess getInvitationProcess(JID jid) {
        return this.processes.get(jid);
    }

    public synchronized void addInvitationProcess(InvitationProcess process) {
        InvitationProcess oldProcess = this.processes.put(process.getPeer(),
            process);
        if (oldProcess != null) {
            log.error(
                "An internal error occurred:"
                    + " An existing invititation process with "
                    + Utils.prefix(oldProcess.getPeer())
                    + " was replace by a new one", new StackTrace());
        }
    }
View Full Code Here


        receiver.addPacketListener(this, getFilter());
    }

    @Override
    public void invitationCanceledReceived(JID sender, String errorMsg) {
        InvitationProcess invitationProcess = invitationProcesses
            .getInvitationProcess(sender);
        ProjectNegotiation projectExchange = projectExchangeProcesses
            .getProjectExchangeProcess(sender);
        if (invitationProcess != null) {
            log.debug("Inv" + Utils.prefix(sender)
                + ": Received invitation cancel message");
            invitationProcess.remoteCancel(errorMsg);
        } else if (projectExchange != null) {
            projectExchange.remoteCancel(errorMsg);
        } else {
            log.warn("Inv[unkown buddy]: Received invitation cancel message for unknown invitation process. Ignoring...");
        }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.invitation.InvitationProcess

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.