package rmiClient;

/**
 *
 * ChatObject is sitting on the client side. It is used as a remote object by
 * the server to handle messages for the client.
 * 
 * @author Patrick and Tenzin
 * @date 25 nov 2008
 * @version 1.0
 */

import java.rmi.*;
import java.rmi.server.*;

public class ChatObject extends UnicastRemoteObject implements ChatObjectInterface {
	Client client;

	public ChatObject(Client client) throws RemoteException {
		this.client = client;
	}

	public void handle(String message) throws RemoteException {
		client.handle(message);
	}

}