ChatDeliverer.java 954 Bytes
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1
/**
Matt Tucker's avatar
Matt Tucker committed
2 3 4 5
 * $RCSfile$
 * $Revision$
 * $Date$
 *
Matt Tucker's avatar
Matt Tucker committed
6
 * Copyright (C) 2004 Jive Software. All rights reserved.
Matt Tucker's avatar
Matt Tucker committed
7
 *
Matt Tucker's avatar
Matt Tucker committed
8 9
 * This software is published under the terms of the GNU Public License (GPL),
 * a copy of which is included in this distribution.
Matt Tucker's avatar
Matt Tucker committed
10
 */
Matt Tucker's avatar
Matt Tucker committed
11

Matt Tucker's avatar
Matt Tucker committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
package org.jivesoftware.messenger.muc;

import org.jivesoftware.messenger.IQ;
import org.jivesoftware.messenger.Message;
import org.jivesoftware.messenger.Presence;

/**
 * Interface for any object that can accept chat messages and presence
 * for delivery.
 *
 * @author Gaston Dombiak
 */
public interface ChatDeliverer {
    /**
     * Sends a packet to the user.
     *
     * @param packet The packet to send
     */
30
    void send(Message packet);
Matt Tucker's avatar
Matt Tucker committed
31 32 33 34 35 36

    /**
     * Sends a packet to the user.
     *
     * @param packet The packet to send
     */
37
    void send(Presence packet);
Matt Tucker's avatar
Matt Tucker committed
38 39 40 41 42 43

    /**
     * Sends a packet to the user.
     *
     * @param packet The packet to send
     */
44
    void send(IQ packet);
Matt Tucker's avatar
Matt Tucker committed
45
}