rmi
Interface ChatClientInterface

All Superinterfaces:
ChatParticipantInterface, java.rmi.Remote
All Known Implementing Classes:
ChatClient

public interface ChatClientInterface
extends ChatParticipantInterface

Interface for clients in simple chat application.


Method Summary
 java.lang.String getAddress()
          Gets client's hostname/IPA.
 java.lang.String getScreenName()
          Gets client's screen name.
 void shutdown()
          Shuts down, notifying server that we're leaving.
 void startup()
          Starts up client (performing any work that can't be done in the constructor).
 
Methods inherited from interface rmi.ChatParticipantInterface
addClient, broadcast, display, removeClient
 

Method Detail

getScreenName

java.lang.String getScreenName()
                               throws java.rmi.RemoteException
Gets client's screen name.

Returns:
screen name
Throws:
java.rmi.RemoteException

getAddress

java.lang.String getAddress()
                            throws java.rmi.RemoteException
Gets client's hostname/IPA.

Returns:
hostname and IPA, in string form
Throws:
java.rmi.RemoteException

startup

void startup()
             throws java.rmi.RemoteException
Starts up client (performing any work that can't be done in the constructor).

Throws:
java.rmi.RemoteException

shutdown

void shutdown()
              throws java.rmi.RemoteException
Shuts down, notifying server that we're leaving.

Throws:
java.rmi.RemoteException