/[classpath]/inetlib/source/gnu/inet/ftp/FTPResponse.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/ftp/FTPResponse.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dog, Sun Oct 19 08:51:37 2003 UTC revision 1.2 by dog, Sun Oct 19 16:16:49 2003 UTC
# Line 36  package gnu.inet.ftp; Line 36  package gnu.inet.ftp;
36  public final class FTPResponse  public final class FTPResponse
37  {  {
38    
39          /**          /**
40           * The 3-digit status code.           * The 3-digit status code.
41           */           */
42          protected final int code;    protected final int code;
43    
44          /**          /**
45           * The human-readable message.           * The human-readable message.
46           */           */
47          protected final String message;    protected final String message;
48    
49          /**          /**
50           * Multiline data, if present.           * Multiline data, if present.
51           */           */
52          protected final String data;    protected final String data;
53    
54          /**          /**
55           * Constructs a new FTP response.           * Constructs a new FTP response.
56           * @param code the status code           * @param code the status code
57           * @param message the message           * @param message the message
58           */           */
59          public FTPResponse(int code, String message)    public FTPResponse(int code, String message)
60          {    {
61                  this(code, message, null);      this(code, message, null);
62          }    }
63            
64          /**          /**
65           * Constructs a new multiline FTP response.           * Constructs a new multiline FTP response.
66           * @param code the status code           * @param code the status code
67           * @param message the message           * @param message the message
68           * @param data multiline data           * @param data multiline data
69           */           */
70          public FTPResponse(int code, String message, String data)    public FTPResponse(int code, String message, String data)
71          {    {
72                  this.code = code;      this.code = code;
73                  this.message = message;      this.message = message;
74                  this.data = data;      this.data = data;
75          }    }
76    
77          /**          /**
78           * Returns the 3-digit status code.           * Returns the 3-digit status code.
79           */           */
80          public int getCode()    public int getCode()
81          {    {
82                  return code;      return code;
83          }    }
84    
85          /**          /**
86           * Returns the human-readable message.           * Returns the human-readable message.
87           */           */
88          public String getMessage()    public String getMessage()
89          {    {
90                  return message;      return message;
91          }    }
92    
93          /**          /**
94           * Returns the multiline data, or null if there was no such data.           * Returns the multiline data, or null if there was no such data.
95           */           */
96          public String getData()    public String getData()
97          {    {
98                  return data;      return data;
99          }    }
100    
101  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26