Interface Exec

All Known Implementing Classes:
SimpleExec

public interface Exec
A console component that is capable of executing individual commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a new non-interactive console session in which to execute a single command.
  • Method Details

    • newExecSession

      ExecSession newExecSession(ExecRequest request) throws IOException
      Create a new non-interactive console session in which to execute a single command.

      If the request fails, this method should return null and write an error message to request.getErrorStream().

      Parameters:
      request - command request
      Returns:
      non-interactive session, or null on failure
      Throws:
      IOException - if an I/O error occurs
      IllegalArgumentException - if request null