|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface describes class which can be used to run SNIFOS applications and communication modules server.
| Method Summary | |
void |
disconnectUser(UserId userId)
Disconnects user with given id from server. |
void |
receiveMessage(UserId userId,
org.dom4j.Document message)
Called by communication module to pass message from user to appropriate application. |
void |
sendMessage(UserId userId,
org.dom4j.Document message)
Called by application to send message to user. |
void |
unregisterUser(UserId userId)
Unregisters user with given id from server application. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public void sendMessage(UserId userId,
org.dom4j.Document message)
userId - Id of user which should receive message.message - Message to be sent.
public void receiveMessage(UserId userId,
org.dom4j.Document message)
throws InvalidUserException,
ConfigurationException
userId - Id of user which sends message.message - Received message.
InvalidUserException - Thrown when user id is invalid.
ConfigurationException - Thrown when application instance with
default configuration is created and the configuration is invalid.public void disconnectUser(UserId userId)
userId - Id of the user.public void unregisterUser(UserId userId)
userId - Id of the user.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||