Class PowerShellResponse


  • public class PowerShellResponse
    extends java.lang.Object
    Response of PowerShell command. This object encapsulate all the useful returned information
    Author:
    Javier Garcia Alonso
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getCommandOutput()
      Retrieves the content returned by the executed command
      boolean isError()
      True if the command could not be correctly executed (timeout or unexpected error)
      boolean isTimeout()
      True if the command finished in timeout
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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

        Returns:
        boolean value
      • getCommandOutput

        public java.lang.String getCommandOutput()
        Retrieves the content returned by the executed command
        Returns:
        boolean value
      • isTimeout

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