Class SimpleExecRequest

java.lang.Object
org.dellroad.jct.core.AbstractConsoleRequest<ExecRequest>
org.dellroad.jct.core.simple.SimpleExecRequest
All Implemented Interfaces:
ConsoleRequest<ExecRequest>, ExecRequest

public class SimpleExecRequest extends AbstractConsoleRequest<ExecRequest> implements ExecRequest
Straightforward implementation of the ExecRequest interface.
  • Constructor Details

    • SimpleExecRequest

      public SimpleExecRequest(InputStream in, PrintStream out, PrintStream err, Map<String,String> env, String commandString)
      Constructor.
      Parameters:
      in - command input
      out - command output
      err - command error output
      env - environment variables, or null for an empty map
      commandString - the command string to execute
      Throws:
      IllegalArgumentException - if any parameter other than env is null
    • SimpleExecRequest

      public SimpleExecRequest(InputStream in, PrintStream out, PrintStream err, Map<String,String> env, List<String> commandList)
      Constructor.
      Parameters:
      in - command input
      out - command output
      err - command error output
      env - environment variables, or null for an empty map
      commandList - the command list to execute
      Throws:
      IllegalArgumentException - if any parameter other than env is null
  • Method Details