Package org.owasp.esapi
Class ExecuteResult
- java.lang.Object
-
- org.owasp.esapi.ExecuteResult
-
public class ExecuteResult extends java.lang.Object
The ExecuteResult class encapsulates the pieces of data that can be returned from a process executed by the Executor interface. This class is immutable for thread-safety.- Since:
- Aug 25, 2010
- Author:
- Patrick Higgins
-
-
Constructor Summary
Constructors Constructor Description ExecuteResult(int exitValue, java.lang.String output, java.lang.String errors)
Constructs an ExecuteResult from the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrors()
int
getExitValue()
java.lang.String
getOutput()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ExecuteResult
public ExecuteResult(int exitValue, java.lang.String output, java.lang.String errors)
Constructs an ExecuteResult from the given values.- Parameters:
exitValue
- the code from java.lang.Process.exitValue()output
- the contents read from java.lang.Process.getInputStream()errors
- the contents read from java.lang.Process.getErrorStream()
-
-
Method Detail
-
getExitValue
public int getExitValue()
- Returns:
- the code from java.lang.Process.exitValue()
-
getOutput
public java.lang.String getOutput()
- Returns:
- the contents read from java.lang.Process.getInputStream()
-
getErrors
public java.lang.String getErrors()
- Returns:
- the contents read from java.lang.Process.getErrorStream()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-