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.Exception
public 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 commandFtpException
Copyright © 2023. All rights reserved.