public final class FtpCommandInvoker extends Object
| Constructor and Description |
|---|
FtpCommandInvoker()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(FtpServerChannel channel,
String cmdKey,
String args)
Runs the command identified by cmdKey.
|
void |
registerCommand(String cmdKey,
FtpCommand cmd)
Registers a cmdKey with a command.
|
public void registerCommand(String cmdKey, FtpCommand cmd) throws Exception
cmdKey - to identify the command.cmd - the string the represent the command.Exceptionpublic void invoke(FtpServerChannel channel, String cmdKey, String args) throws FtpException
channel - handle back to invocation environment.cmdKey - key to identify Command.args - args into the commandFtpExceptionCopyright © 2025. All rights reserved.