@FunctionalInterface public interface CommandFactory
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(ChannelSession channel,
String command)
Create a command with the given name.
|
static List<String> |
split(String command) |
Command createCommand(ChannelSession channel, String command) throws IOException
channel
- The ChannelSession
through which the command has been receivedcommand
- The command that will be runnull
Command
instanceIOException
- if failed to create the instanceCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.