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 |
ExecuteResult(int exitValue,
java.lang.String output,
java.lang.String errors)
Constructs an ExecuteResult from the given values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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()
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 class java.lang.Object
Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.