1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.net.ftp;
19
20
21
22
23
24
25 public enum FTPCmd {
26
27
28 ABOR,
29
30
31 ACCT,
32
33
34 ALLO,
35
36
37 APPE,
38
39
40 CDUP,
41
42
43 CWD,
44
45
46 DELE,
47
48
49 EPRT,
50
51
52 EPSV,
53
54
55 FEAT,
56
57
58 HELP,
59
60
61 LIST,
62
63
64 MDTM,
65
66
67 MFMT,
68
69
70 MKD,
71
72
73 MLSD,
74
75
76 MLST,
77
78
79 MODE,
80
81
82 NLST,
83
84
85 NOOP,
86
87
88
89
90
91
92 OPTS,
93
94
95 PASS,
96
97
98 PASV,
99
100
101 PORT,
102
103
104 PWD,
105
106
107 QUIT,
108
109
110 REIN,
111
112
113 REST,
114
115
116 RETR,
117
118
119 RMD,
120
121
122 RNFR,
123
124
125 RNTO,
126
127
128 SITE,
129
130
131
132
133
134
135 SIZE,
136
137
138 SMNT,
139
140
141 STAT,
142
143
144 STOR,
145
146
147 STOU,
148
149
150 STRU,
151
152
153 SYST,
154
155
156 TYPE,
157
158
159 USER;
160
161
162
163
164 public static final FTPCmd ABORT = ABOR;
165
166
167 public static final FTPCmd ACCOUNT = ACCT;
168
169
170 public static final FTPCmd ALLOCATE = ALLO;
171
172
173 public static final FTPCmd APPEND = APPE;
174
175
176 public static final FTPCmd CHANGE_TO_PARENT_DIRECTORY = CDUP;
177
178
179 public static final FTPCmd CHANGE_WORKING_DIRECTORY = CWD;
180
181
182 public static final FTPCmd DATA_PORT = PORT;
183
184
185 public static final FTPCmd DELETE = DELE;
186
187
188 public static final FTPCmd FEATURES = FEAT;
189
190
191 public static final FTPCmd FILE_STRUCTURE = STRU;
192
193
194 public static final FTPCmd GET_MOD_TIME = MDTM;
195
196
197 public static final FTPCmd LOGOUT = QUIT;
198
199
200 public static final FTPCmd MAKE_DIRECTORY = MKD;
201
202
203 public static final FTPCmd MOD_TIME = MDTM;
204
205
206 public static final FTPCmd NAME_LIST = NLST;
207
208
209 public static final FTPCmd PASSIVE = PASV;
210
211
212 public static final FTPCmd PASSWORD = PASS;
213
214
215 public static final FTPCmd PRINT_WORKING_DIRECTORY = PWD;
216
217
218 public static final FTPCmd REINITIALIZE = REIN;
219
220
221 public static final FTPCmd REMOVE_DIRECTORY = RMD;
222
223
224 public static final FTPCmd RENAME_FROM = RNFR;
225
226
227 public static final FTPCmd RENAME_TO = RNTO;
228
229
230 public static final FTPCmd REPRESENTATION_TYPE = TYPE;
231
232
233 public static final FTPCmd RESTART = REST;
234
235
236 public static final FTPCmd RETRIEVE = RETR;
237
238
239 public static final FTPCmd SET_MOD_TIME = MFMT;
240
241
242 public static final FTPCmd SITE_PARAMETERS = SITE;
243
244
245 public static final FTPCmd STATUS = STAT;
246
247
248 public static final FTPCmd STORE = STOR;
249
250
251 public static final FTPCmd STORE_UNIQUE = STOU;
252
253
254 public static final FTPCmd STRUCTURE_MOUNT = SMNT;
255
256
257 public static final FTPCmd SYSTEM = SYST;
258
259
260 public static final FTPCmd TRANSFER_MODE = MODE;
261
262
263 public static final FTPCmd USERNAME = USER;
264
265
266
267
268
269
270 public String getCommand() {
271 return name();
272 }
273
274 }