01: package com.coldcore.coloradoftp.command;
02:
03: /**
04: * Processes user input.
05: *
06: * This class executes user commands and sends replies.
07: *
08: * When dealing with exceptions from command executions, this class must
09: * 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: }
|