Interface CommandFactory

    • Method Detail

      • createCommand

        Command createCommand​(ChannelSession channel,
                              java.lang.String command)
                       throws java.io.IOException
        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.
        Parameters:
        channel - The ChannelSession through which the command has been received
        command - The command that will be run
        Returns:
        a non null Command instance
        Throws:
        java.io.IOException - if failed to create the instance
      • split

        static java.util.List<java.lang.String> split​(java.lang.String command)
        Parameters:
        command - The raw command - ignored if null/empty
        Returns:
        The parsed command elements while stripping quoted arguments