Class java.rmi.examples.chat.SugarConnection
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.examples.chat.SugarConnection

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteServer
                           |
                           +----java.rmi.examples.chat.SugarConnection

public class SugarConnection
extends UnicastRemoteServer
implements ChatConnection
The class for objects that represent each client's connection to a SugarShack service. It invokes methods of the same name on the SugarShack object.

Method Index

 o alias()
 o alias(String)
 o client()
 o id()
 o newMessage(int, String)
 o state(int)
 o toString()
Returns a String that represents the value of this remote object.

Methods

 o newMessage
  public void newMessage(int seqID,
                         String message)
 o alias
  public void alias(String newAlias)
 o state
  public void state(int newState)
 o toString
  public String toString()
Returns a String that represents the value of this remote object.
Overrides:
toString in class RemoteObject
 o id
  public final int id()
 o client
  public final ChatClient client()
 o alias
  public final String alias()

All Packages  Class Hierarchy  This Package  Previous  Next  Index