@FunctionalInterface
public interface CommandFactory
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(ChannelSession channel,
java.lang.String command)
Create a command with the given name.
|
static java.util.List<java.lang.String> |
split(java.lang.String command) |
Command createCommand(ChannelSession channel, java.lang.String command) throws java.io.IOException
channel
- The ChannelSession
through which the command has been receivedcommand
- The command that will be runnull
Command
instancejava.io.IOException
- if failed to create the instancestatic java.util.List<java.lang.String> split(java.lang.String command)
command
- The raw command - ignored if null
/empty