01: /**
02: *
03: * Java FTP client library.
04: *
05: * Copyright (C) 2000-2003 Enterprise Distributed Technologies Ltd
06: *
07: * www.enterprisedt.com
08: *
09: * 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 should posted on
24: * http://www.enterprisedt.com/forums/index.php
25: *
26: * Change Log:
27: *
28: * $Log: FTPConnectMode.java,v $
29: * Revision 1.6 2007-08-07 04:44:18 bruceb
30: * added toString()
31: *
32: * Revision 1.5 2006/10/11 08:51:05 hans
33: * made cvsId and ACTIVE and PASV final
34: *
35: * Revision 1.4 2005/06/03 11:26:25 bruceb
36: * comment change
37: *
38: * Revision 1.3 2004/07/23 08:27:19 bruceb
39: * made public cvsId
40: *
41: * Revision 1.2 2002/11/19 22:01:25 bruceb
42: * changes for 1.2
43: *
44: * Revision 1.1 2001/10/09 20:53:46 bruceb
45: * Active mode changes
46: *
47: * Revision 1.1 2001/10/05 14:42:04 bruceb
48: * moved from old project
49: *
50: *
51: */package com.enterprisedt.net.ftp;
52:
53: /**
54: * Enumerates the connect modes that are possible,
55: * active & PASV
56: *
57: * @author Bruce Blackshaw
58: * @version $Revision: 1.6 $
59: *
60: */
61: public class FTPConnectMode {
62:
63: /**
64: * Revision control id
65: */
66: public static final String cvsId = "@(#)$Id: FTPConnectMode.java,v 1.6 2007-08-07 04:44:18 bruceb Exp $";
67:
68: private String desc;
69:
70: /**
71: * Represents active connect mode
72: */
73: public static final FTPConnectMode ACTIVE = new FTPConnectMode(
74: "Active");
75:
76: /**
77: * Represents PASV connect mode
78: */
79: public static final FTPConnectMode PASV = new FTPConnectMode(
80: "Passive");
81:
82: /**
83: * Private so no-one else can instantiate this class
84: */
85: private FTPConnectMode(String desc) {
86: this .desc = desc;
87: }
88:
89: public String toString() {
90: return desc;
91: }
92: }
|