org.owasp.esapi
Class ExecuteResult
java.lang.Object
org.owasp.esapi.ExecuteResult
public class ExecuteResult
- extends 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 |
ExecuteResult(int exitValue,
String output,
String errors)
Constructs an ExecuteResult from the given values. |
ExecuteResult
public ExecuteResult(int exitValue,
String output,
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()
getExitValue
public int getExitValue()
- Returns:
- the code from java.lang.Process.exitValue()
getOutput
public String getOutput()
- Returns:
- the contents read from java.lang.Process.getInputStream()
getErrors
public String getErrors()
- Returns:
- the contents read from java.lang.Process.getErrorStream()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 The Open Web Application Security Project (OWASP). All Rights Reserved.