Package org.apache.sshd.server.shell
Class UnknownCommandFactory
- java.lang.Object
-
- org.apache.sshd.server.shell.UnknownCommandFactory
-
- All Implemented Interfaces:
CommandFactory
public class UnknownCommandFactory extends Object implements CommandFactory
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static StringFACTORY_NAMEstatic UnknownCommandFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description UnknownCommandFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandcreateCommand(ChannelSession channel, String command)Create a command with the given name.StringtoString()
-
-
-
Field Detail
-
FACTORY_NAME
public static final String FACTORY_NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final UnknownCommandFactory INSTANCE
-
-
Method Detail
-
createCommand
public Command createCommand(ChannelSession channel, String command)
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
-
-