01: package com.coldcore.coloradoftp.command;
02:
03: /**
04: * Server reply to user.
05: * This class is used by a control connections to reply to users.
06: *
07: *
08: * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
09: */
10: public interface Reply {
11:
12: /** Set code
13: * @param code Code
14: */
15: public void setCode(String code);
16:
17: /** Get code
18: * @return code Code
19: */
20: public String getCode();
21:
22: /** Set text (in multiline text lines must be separated by #13#10)
23: * @param text Text
24: */
25: public void setText(String text);
26:
27: /** Get text
28: * @return text Text
29: */
30: public String getText();
31:
32: /** Prepare reply for transfering
33: * @return Prepared reply
34: */
35: public String prepare();
36:
37: /** Set command that triggered this reply
38: * @param command Command
39: */
40: public void setCommand(Command command);
41:
42: /** Get command that triggered this reply
43: * @return Command
44: */
45: public Command getCommand();
46: }
|