import java.rmi.Remote; import java.rmi.RemoteException; public interface ChatServer extends Remote { /* Connect to chat */ public void connect (String name) throws RemoteException; /* Sends the given text to all clients */ public void send (String name, String text) throws RemoteException; /* Returns the chat text for the given id */ public String get (int id) throws RemoteException; /* Quit from the chat */ public void disconnect (String name)throws RemoteException; }