ikrs.httpd
Class ModuleCommand

java.lang.Object
  extended by ikrs.util.AbstractCommand
      extended by ikrs.util.DefaultCommand
          extended by ikrs.httpd.ModuleCommand
All Implemented Interfaces:
Command, java.lang.Comparable<Command>

public class ModuleCommand
extends DefaultCommand


Field Summary
static java.lang.String COMMAND_HEXDUMP
           
static java.lang.String COMMAND_STATUS
           
 
Constructor Summary
ModuleCommand(java.lang.String name, BasicType[] params, int offset)
          Create a new LocalCommand (for the yucca/ikrs.httpd command line).
 
Method Summary
 int execute()
          This is the final execution method - it does nothing but returning 1.
 int getOffset()
           
 
Methods inherited from class ikrs.util.DefaultCommand
compareTo
 
Methods inherited from class ikrs.util.AbstractCommand
getName, getParamAt, getParamCount, setName, setParams, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ikrs.util.Command
getName, getParamAt, getParamCount, toString
 

Field Detail

COMMAND_HEXDUMP

public static final java.lang.String COMMAND_HEXDUMP
See Also:
Constant Field Values

COMMAND_STATUS

public static final java.lang.String COMMAND_STATUS
See Also:
Constant Field Values
Constructor Detail

ModuleCommand

public ModuleCommand(java.lang.String name,
                     BasicType[] params,
                     int offset)
Create a new LocalCommand (for the yucca/ikrs.httpd command line).

Parameters:
name - The command's name.
params - The command's params.
Method Detail

getOffset

public int getOffset()

execute

public int execute()
Description copied from class: DefaultCommand
This is the final execution method - it does nothing but returning 1. Note that this method does _not_ throw any exceptions! Its up to a stored internal command handler to handle exceptions.

Specified by:
execute in interface Command
Overrides:
execute in class DefaultCommand
Returns:
a return code that indicates the execution result. It depends on the context what the exact meaning of the return code is, but usually the value 0 (zero) implies success.