|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.applet.MessageServer
public class MessageServer
Handles messages for an AppletCommunicationStrategy
.
Nested Class Summary | |
---|---|
(package private) static class |
MessageServer.Strategy
A communication strategy used by both the message-server and its clients. |
protected class |
MessageServer.User
|
protected class |
MessageServer.UserMessageThread
|
Field Summary | |
---|---|
(package private) ServiceAddress |
addr
|
(package private) java.util.Date |
startupDate
|
(package private) MessageServer.Strategy |
strategy
|
Constructor Summary | |
---|---|
MessageServer()
|
Method Summary | |
---|---|
protected java.lang.String |
agoTime(java.util.Date then,
java.util.Date now)
|
(package private) void |
checkSender(AppletMessage m)
|
(package private) void |
clientService(ObjectStreamConnection connection)
|
(package private) AppletMessage |
evalGetMessage(AppletMessage m,
ObjectStreamConnection conn)
|
(package private) java.lang.Object |
evalMessage(AppletMessage m,
ObjectStreamConnection conn)
|
(package private) java.lang.String |
evalRegisterAs(AppletMessage m)
|
(package private) java.lang.String |
evalSendTo(AppletMessage m)
|
(package private) java.lang.String |
evalServerStatus(AppletMessage m)
|
protected MessageServer.User |
getUser(java.lang.String name)
|
protected java.util.List |
getUsers()
|
(package private) void |
handleMessage(ObjectStreamConnection connection,
java.lang.Object contents)
|
static void |
main(java.lang.String[] argv)
|
protected void |
recordUser(MessageServer.User user)
|
protected void |
removeUser(MessageServer.User user)
|
(package private) java.lang.Object |
sendReply(ObjectStreamConnection connection,
java.lang.Object reply)
|
(package private) void |
serveClientOn(ObjectStreamConnection connection)
|
(package private) void |
start()
|
(package private) AppletMessage |
unpackRequest(java.lang.Object contents)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ServiceAddress addr
MessageServer.Strategy strategy
java.util.Date startupDate
Constructor Detail |
---|
public MessageServer()
Method Detail |
---|
public static void main(java.lang.String[] argv)
void start() throws java.lang.Exception
java.lang.Exception
void serveClientOn(ObjectStreamConnection connection)
void clientService(ObjectStreamConnection connection)
void handleMessage(ObjectStreamConnection connection, java.lang.Object contents)
AppletMessage unpackRequest(java.lang.Object contents)
java.lang.Object sendReply(ObjectStreamConnection connection, java.lang.Object reply)
java.lang.Object evalMessage(AppletMessage m, ObjectStreamConnection conn)
java.lang.String evalRegisterAs(AppletMessage m)
java.lang.String evalSendTo(AppletMessage m)
AppletMessage evalGetMessage(AppletMessage m, ObjectStreamConnection conn)
void checkSender(AppletMessage m)
java.lang.String evalServerStatus(AppletMessage m)
protected java.lang.String agoTime(java.util.Date then, java.util.Date now)
protected MessageServer.User getUser(java.lang.String name)
protected java.util.List getUsers()
protected void recordUser(MessageServer.User user)
protected void removeUser(MessageServer.User user)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |