jChatBox.Command
Class UserCommand

java.lang.Object
  |
  +--jChatBox.Command.SystemCommand
        |
        +--jChatBox.Command.ModeratorCommand
              |
              +--jChatBox.Command.UserCommand

public class UserCommand
extends ModeratorCommand

This class handles all USERS Commands.


Constructor Summary
UserCommand()
          Dummy constructor.
 
Method Summary
 java.lang.String execute(java.lang.String todo, CommandParams request, ChatroomUser cUser)
          Processes all USERS commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCommand

public UserCommand()
Dummy constructor.

Method Detail

execute

public java.lang.String execute(java.lang.String todo,
                                CommandParams request,
                                ChatroomUser cUser)
                         throws CommandException
Processes all USERS commands.
CHAT(user,msg,to)
REFRESH
LOGOUT(session)
QUIT(session)
MOVE(id,roomname,session)
No authorization needed.

Overrides:
execute in class ModeratorCommand
Parameters:
todo - action to execute
request - incoming request
cUser - current user
Returns:
message
Throws:
CommandException