Interface ISystemCommand

  • All Known Implementing Classes:
    SystemCommand

    public interface ISystemCommand
    The system command which contains all information to execute a command such as environment, shell and a list of commands.
    • Method Detail

      • getProcessEnvironment

        IProcessEnvironment getProcessEnvironment()
        Get the process environment
        Returns:
        the process environment
      • 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