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.
-
alias()
-
-
alias(String)
-
-
client()
-
-
id()
-
-
newMessage(int, String)
-
-
state(int)
-
-
toString()
- Returns a String that represents the value of this remote object.
newMessage
public void newMessage(int seqID,
String message)
alias
public void alias(String newAlias)
state
public void state(int newState)
toString
public String toString()
- Returns a String that represents the value of this remote object.
- Overrides:
- toString in class RemoteObject
id
public final int id()
client
public final ChatClient client()
alias
public final String alias()
All Packages Class Hierarchy This Package Previous Next Index