ikrs.yuccasrv.commandline
Class CommandWarranty

java.lang.Object
  extended by ikrs.util.AbstractCommand
      extended by ikrs.util.DefaultCommand
          extended by ikrs.yuccasrv.commandline.YuccaCommand
              extended by ikrs.yuccasrv.commandline.CommandWarranty
All Implemented Interfaces:
Command, java.lang.Comparable<Command>

public class CommandWarranty
extends YuccaCommand

This is the default WARRANTY command implementation. It just prints the contents of the warranty.txt file into stdout.


Constructor Summary
CommandWarranty()
           
 
Method Summary
 int execute()
          This method handles the STATUS command's params.
 
Methods inherited from class ikrs.yuccasrv.commandline.YuccaCommand
getFactory, setFactory, setName, setParams
 
Methods inherited from class ikrs.util.DefaultCommand
compareTo
 
Methods inherited from class ikrs.util.AbstractCommand
getName, getParamAt, getParamCount, 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
 

Constructor Detail

CommandWarranty

public CommandWarranty()
Method Detail

execute

public int execute()
This method handles the STATUS command's params. 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 YuccaCommand
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.