package api; import java.rmi.*; /** * * @author Pete Cappello */ public interface Client extends Remote { /** * Get the name the client has chosen to use in the chat. * @return the name the client has chosen to use in the chat. * @throws RemoteException ignore: This method is never invoked remotely. */ public String getClientName() throws RemoteException; /** * Receive a Message originally sent by a Client * @param message the message the Client intends to send to all Clients * @throws RemoteException when remote invocation of this method fails. */ public void update( Message message ) throws RemoteException; }