public class ProcessShellCommandFactory extends java.lang.Object implements CommandFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FACTORY_NAME |
static ProcessShellCommandFactory |
INSTANCE |
Constructor and Description |
---|
ProcessShellCommandFactory() |
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(ChannelSession channel,
java.lang.String command)
Create a command with the given name.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
split
public static final java.lang.String FACTORY_NAME
public static final ProcessShellCommandFactory INSTANCE
public java.lang.String toString()
toString
in class java.lang.Object
public Command createCommand(ChannelSession channel, java.lang.String command) throws java.io.IOException
CommandFactory
createCommand
in interface CommandFactory
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 instance