KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > coldcore > coloradoftp > command > CommandProcessor


1 package com.coldcore.coloradoftp.command;
2
3 /**
4  * Processes user input.
5  *
6  * This class executes user commands and sends replies.
7  *
8  * When dealing with exceptions from command executions, this class must
9  * not throw exceptions, instead it must send to user replies with error messages.
10  * Note that error from a filesystem class are not always errors producing
11  * default LOCAL ERROR reply. That is because filesystem is unable to
12  * post replies and it communicates back using a special kind of exceptions.
13  *
14  *
15  * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
16  */

17 public interface CommandProcessor {
18
19   /** Execute the command
20    * @param command Command
21    */

22   public void execute(Command command);
23 }
24
Popular Tags