KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > enterprisedt > net > ftp > FTPReply


1 /**
2  *
3  * Java FTP client library.
4  *
5  * Copyright (C) 2000-2003 Enterprise Distributed Technologies Ltd
6  *
7  * www.enterprisedt.com
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  *
23  * Bug fixes, suggestions and comments should be sent to bruce@enterprisedt.com
24  *
25  * Change Log:
26  *
27  * $Log: FTPReply.java,v $
28  * Revision 1.1.1.1 2005/06/23 15:23:01 smontoro
29  * hipergate backend
30  *
31  * Revision 1.1 2004/02/07 03:15:20 hipergate
32  * v2.0 pre-alpha
33  *
34  * Revision 1.1 2002/11/19 22:01:25 bruceb
35  * changes for 1.2
36  *
37  *
38  */

39
40 package com.enterprisedt.net.ftp;
41
42 /**
43  * Encapsulates the FTP server reply
44  *
45  * @author Bruce Blackshaw
46  * @version $Revision: 1.1.1.1 $
47  */

48 public class FTPReply {
49
50     /**
51      * Revision control id
52      */

53     private static String JavaDoc cvsId = "@(#)$Id: FTPReply.java,v 1.1.1.1 2005/06/23 15:23:01 smontoro Exp $";
54
55     /**
56      * Reply code
57      */

58     private String JavaDoc replyCode;
59
60     /**
61      * Reply text
62      */

63     private String JavaDoc replyText;
64
65
66     /**
67      * Constructor. Only to be constructed
68      * by this package, hence package access
69      *
70      * @param replyCode the server's reply code
71      * @param replyText the server's reply text
72      */

73     FTPReply(String JavaDoc replyCode, String JavaDoc replyText) {
74         this.replyCode = replyCode;
75         this.replyText = replyText;
76     }
77
78     /**
79      * Getter for reply code
80      *
81      * @return server's reply code
82      */

83     public String JavaDoc getReplyCode() {
84         return replyCode;
85     }
86
87     /**
88      * Getter for reply text
89      *
90      * @return server's reply text
91      */

92     public String JavaDoc getReplyText() {
93         return replyText;
94     }
95
96 }
97
Popular Tags