org.owasp.esapi
Class ExecuteResult

java.lang.Object
  extended by 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.
 
Method Summary
 java.lang.String getErrors()
           
 int getExitValue()
           
 java.lang.String getOutput()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class java.lang.Object


Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.