com.elvyx.client.command
Class MessageHandler

java.lang.Object
  extended by com.elvyx.client.command.MessageHandler

public class MessageHandler
extends java.lang.Object

Manage messages. It loads dynamically commands and send it to the server.

Since:
1.0
Version:
$Revision: 1.1 $
Author:
Armando Perdomo

Constructor Summary
MessageHandler(java.lang.String cmd)
          This constructor, load the command instance
 
Method Summary
 Response execute()
          This methos allow execute the command without set parameters
 Response execute(java.lang.Object parameters)
          This method execute commands.
 Command getCommand()
          Return the command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHandler

public MessageHandler(java.lang.String cmd)
               throws CommandException
This constructor, load the command instance

Throws:
CommandException
Method Detail

execute

public Response execute(java.lang.Object parameters)
                 throws CommandException
This method execute commands. It means send the command to the server and wait for response.

Parameters:
parameters -
Returns:
It is the response from server
Throws:
CommandException

execute

public Response execute()
                 throws CommandException
This methos allow execute the command without set parameters

Returns:
It is the response from server
Throws:
CommandException

getCommand

public Command getCommand()
Return the command

Returns:
Command


Copyright © 2006-2008 Armando Perdomo. All Rights Reserved.