summaryrefslogtreecommitdiff
path: root/tags/2.1/src/site/apt/stubftpserver-commandhandlers.apt
blob: e24a7e5a0250e2bc9320966cf228576cc2b2c863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
		------------------------------------------------------
			StubFtpServer FTP Commands and CommandHandlers
		------------------------------------------------------

StubFtpServer - FTP Commands and CommandHandlers

  The following table lists the main FTP server commands with their corresponding FTP client commands,
  and the <<StubFtpServer>> <CommandHandler> classes that implements support for the FTP server command.
  See the Javadoc for each <CommandHandler> class for information on how to customize its behavior
  through configuration, as well as what command invocation data is available.

*------------------------*------------------------*------------------------------------------*
| <<FTP Server Command>> | <<FTP Client Command>> | <<CommandHandler Class(es)>>             |
*------------------------*------------------------*------------------------------------------*
| ABOR                   | --                     | AborCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| ACCT                   | --                     | AcctCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| ALLO                   | --                     | AlloCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| APPE                   | APPEND                 | AppeCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| CDUP                   | --                     | CdupCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| CWD                    | CD                     | CwdCommandHandler                        |
*------------------------*------------------------*------------------------------------------*
| DELE                   | DELETE                 | DeleCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| EPRT                   | --                     | EprtCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| EPSV                   | --                     | EpsvCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| HELP                   | REMOTEHELP             | HelpCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| LIST                   | DIR / LS               | ListCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| MKD                    | MKDIR                  | MkdCommandHandler                        |
*------------------------*------------------------*------------------------------------------*
| MODE                   | --                     | ModeCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| NLST                   | --                     | NlstCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| NOOP                   | --                     | NoopCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| PASS                   | USER                   | PassCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| PASV                   | --                     | PasvCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| PORT                   | --                     | PortCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| PWD                    | PWD                    | PwdCommandHandler                        |
*------------------------*------------------------*------------------------------------------*
| QUIT                   | QUIT / BYE             | QuitCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| REIN                   | --                     | ReinCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| REST                   | --                     | RestCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| RETR                   | GET / RECV             | RetrCommandHandler                       |
|                        |                        | FileRetrCommandHandler (1)               |
*------------------------*------------------------*------------------------------------------*
| RMD                    | RMDIR                  | RmdCommandHandler                        |
*------------------------*------------------------*------------------------------------------*
| RNFR                   | RENAME                 | RnfrCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| RNTO                   | RENAME                 | RntoCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| SITE                   | --                     | SiteCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| SMNT                   | --                     | SmntCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| STAT                   | STATUS                 | StatCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| STOR                   | PUT / SEND             | StorCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| STOU                   | --                     | StouCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| STRU                   | --                     | StruCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| SYST                   | --                     | SystCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| TYPE                   | ASCII / BINARY / TYPE  | TypeCommandHandler                       |
*------------------------*------------------------*------------------------------------------*
| USER                   | USER                   | UserCommandHandler                       |
*------------------------*------------------------*------------------------------------------*

  (1) An alternative to the default <CommandHandler> implementation. See its class Javadoc.


* Special Command Handlers
~~~~~~~~~~~~~~~~~~~~~~~~~~

  There are also <special> <CommandHandler> classes defined (in the <<core>> package).

  * <<ConnectCommandHandler>> - Sends a 220 reply code after the initial connection to the server.
     
  * <<UnsupportedCommandHandler>> - Sends a 502 reply when an unrecognized/unsupported
    command name is sent from a client.