Package com.profesorfalken.jpowershell
Class PowerShellResponse
- java.lang.Object
-
- com.profesorfalken.jpowershell.PowerShellResponse
-
public class PowerShellResponse extends java.lang.ObjectResponse of PowerShell command. This object encapsulate all the useful returned information- Author:
- Javier Garcia Alonso
-
-
Method Summary
Modifier and Type Method Description java.lang.StringgetCommandOutput()Retrieves the content returned by the executed commandbooleanisError()True if the command could not be correctly executed (timeout or unexpected error)booleanisTimeout()True if the command finished in timeout
-
-
-
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
-
-