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 Details

  • Constructor Details

    • UnknownCommandFactory

      public UnknownCommandFactory()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createCommand

      public Command createCommand(ChannelSession channel, String command)
      Description copied from interface: CommandFactory
      Create 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:
      createCommand in interface CommandFactory
      Parameters:
      channel - The ChannelSession through which the command has been received
      command - The command that will be run
      Returns:
      a non null Command instance