org.simoes.lpd.command
Class LPDCommands

java.lang.Object
  extended byorg.simoes.lpd.command.LPDCommands

public class LPDCommands
extends java.lang.Object

Creates the concrete command classes to process incoming commands. Then it calls the execute() method on them.

Author:
Chris Simoes

Constructor Summary
LPDCommands()
           
 
Method Summary
 void handleCommand(byte[] command, java.io.InputStream is, java.io.OutputStream os)
          Creates the concrete instance of the command class required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LPDCommands

public LPDCommands()
Method Detail

handleCommand

public void handleCommand(byte[] command,
                          java.io.InputStream is,
                          java.io.OutputStream os)
Creates the concrete instance of the command class required. Then if calls that class' execute() method.

Parameters:
command - byte[] passed in from the client
is - InputStream from the client
os - OutputStream to the client