|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--HooChat.IM_MODULE.MessageServerPOA
|
+--HooChat.MessageServerImpl
This is the class where server methods are located
| Constructor Summary | |
MessageServerImpl(int currentServerNum)
|
|
| Method Summary | |
void |
clientCheckIn(String username)
The client calls this method to let the server know that it is still alive. |
String |
getClientList()
The client calls this to get the list of clients that are currently signed on as a comma delimited string Version 2: Chuck has added global state via hydra services to get the most up-to-date list down |
String |
getMessage(String username)
Gets the most current "message" which is a vector containing a username and message. |
void |
logOff(String username)
The client uses this method to notify the server that it is logging out of the chat. |
void |
post(String username,
String msg)
The client uses this method to post a message to the chat room |
boolean |
register(String username,
String password)
The client is invoked by the client to log-in to the system, authenticate(and i use that term SO loosely) the identity of the client |
| Methods inherited from class HooChat.IM_MODULE.MessageServerPOA |
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageServerImpl(int currentServerNum)
| Method Detail |
public void clientCheckIn(String username)
username - the name of the user that wants to check in
public String getClientList()
public void logOff(String username)
username - the name of the user that wants to log-off
public String getMessage(String username)
public void post(String username,
String msg)
username - the name of the user that is postingmsg - the message they are posting
public boolean register(String username,
String password)
username - the name of the user logging inpassword - the client password
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||