|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectrestgroupsClient.User
public class User
User is a simple console test application, analogous to the User application included in Spread Toolkit archive. Running User application creates a new profile for given username on the RestGroups server and allows joining/leaving custom groups and sending/receiving messages.
| Constructor Summary | |
|---|---|
User(java.lang.String username,
java.lang.String daemonUri)
Constructor. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
The main method. |
void |
messageReceived(java.util.List<RestGroupsMessage> messages)
|
static java.lang.String |
printMessages(java.util.List<RestGroupsMessage> messages)
Used for formatting and printing given by the argument list of messages. |
void |
run()
Provides interface for interactive program. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public User(java.lang.String username,
java.lang.String daemonUri)
username - the clients desired usernamedaemonUri - the RestGroups server URI| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException,
org.restlet.resource.ResourceException
args - clients desired username and URI to the RestGroups server
java.io.IOException
org.restlet.resource.ResourceExceptionpublic void run()
public void messageReceived(java.util.List<RestGroupsMessage> messages)
messageReceived in interface RestGroupsMessageListenerpublic static java.lang.String printMessages(java.util.List<RestGroupsMessage> messages)
messages - list of messages which have to be printed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||