Package org.apache.sshd.server.shell
Class UnknownCommandFactory
java.lang.Object
org.apache.sshd.server.shell.UnknownCommandFactory
- All Implemented Interfaces:
CommandFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCommand(ChannelSession channel, String command) Create a command with the given name.toString()
-
Field Details
-
FACTORY_NAME
- See Also:
-
INSTANCE
-
-
Constructor Details
-
UnknownCommandFactory
public UnknownCommandFactory()
-
-
Method Details
-
toString
-
createCommand
Description copied from interface:CommandFactoryCreate a command with the given name. If the command is not known, a dummy command should be returned to allow the display output to be sent back to the client.- Specified by:
createCommandin interfaceCommandFactory- Parameters:
channel- TheChannelSessionthrough which the command has been receivedcommand- The command that will be run- Returns:
- a non
nullCommandinstance
-