KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.coldcore.coloradoftp.command;
2
3 /**
4  * Server reply to user.
5  * This class is used by a control connections to reply to users.
6  *
7  *
8  * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
9  */

10 public interface Reply {
11
12   /** Set code
13    * @param code Code
14    */

15   public void setCode(String JavaDoc code);
16
17
18   /** Get code
19    * @return code Code
20    */

21   public String JavaDoc getCode();
22
23
24   /** Set text (in multiline text lines must be separated by #13#10)
25    * @param text Text
26    */

27   public void setText(String JavaDoc text);
28
29
30   /** Get text
31    * @return text Text
32    */

33   public String JavaDoc getText();
34
35
36   /** Prepare reply for transfering
37    * @return Prepared reply
38    */

39   public String JavaDoc prepare();
40
41
42   /** Set command that triggered this reply
43    * @param command Command
44    */

45   public void setCommand(Command command);
46
47
48   /** Get command that triggered this reply
49    * @return Command
50    */

51   public Command getCommand();
52 }
53
Popular Tags