|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
client.WSIDOClientImpl
public class WSIDOClientImpl
realizes the callback functionality. Messages from other users are received here.
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
WSIDOClientImpl()
construction object for RemoteException and chatWindows Hashtable |
|
| Method Summary | |
|---|---|
boolean |
acceptRequest(StandardUser user)
callback function that determines if the receiving user wants to interact with the calling user. |
void |
addChatWindow(StandardUser user)
creates a new chat window |
boolean |
receiveMessage(java.lang.String message,
StandardUser user)
receives a Message from the server Application. this method implements the callback functionality and is implemented by the server application |
void |
removeChatWindow(long userId)
removes a chat window |
void |
setMainApp(WSIDOClientMain mainApp)
allows to change the main application |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WSIDOClientImpl()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public boolean receiveMessage(java.lang.String message,
StandardUser user)
receiveMessage in interface WSIDOClientInterfacemessage - including the actual message textuser - referencing to the user, who has send this message
public boolean acceptRequest(StandardUser user)
acceptRequest in interface WSIDOClientInterfaceuser - referencing to the user, who wants to send a message
public void setMainApp(WSIDOClientMain mainApp)
mainApp - reference to the main Applicationpublic void addChatWindow(StandardUser user)
user - user who wants to chatpublic void removeChatWindow(long userId)
userId - user Id to select the chat window for removal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||