类 PowerShellResponse

java.lang.Object
com.tlcsdm.core.powershell.PowerShellResponse

public class PowerShellResponse extends Object
Response of PowerShell command. This object encapsulate all the useful returned information
作者:
Javier Garcia Alonso
  • 字段详细资料

    • error

      private final boolean error
    • commandOutput

      private final String commandOutput
    • timeout

      private final boolean timeout
  • 构造器详细资料

    • PowerShellResponse

      PowerShellResponse(boolean isError, String commandOutput, boolean timeout)
  • 方法详细资料

    • isError

      public boolean isError()
      True if the command could not be correctly executed (timeout or unexpected error)

      If you want to check if the command itself finished in error, use the method PowerShell.isLastCommandInError() instead

      返回:
      boolean value
    • getCommandOutput

      public String getCommandOutput()
      Retrieves the content returned by the executed command
      返回:
      boolean value
    • isTimeout

      public boolean isTimeout()
      True if the command finished in timeout
      返回:
      boolean value