Interface ISystemCommand

  • All Known Implementing Classes:
    SystemCommand

    public interface ISystemCommand
    The command
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getCommandList()
      The system command list which will be passed in the exact way to the system command.
      java.util.List<java.lang.String> getShell()
      The shell to execute.
      java.lang.String toString​(boolean forDisplay)
      The command as string
    • Method Detail

      • getShell

        java.util.List<java.lang.String> getShell()
        The shell to execute.
        Returns:
        the shell to use, by default null.
      • getCommandList

        java.util.List<java.lang.String> getCommandList()
        The system command list which will be passed in the exact way to the system command.
        Returns:
        the command list
      • toString

        java.lang.String toString​(boolean forDisplay)
        The command as string
        Parameters:
        forDisplay - true to prepare the arguments for display; otherwise false. This can be used to protect security relevant arguments e.g. java properties with a password
        Returns:
        the arguments as string