Interface Shell

All Known Implementing Classes:
JShellShell, SimpleShell

public interface Shell
A console component that is capable of interacting with a human via a terminal. Typically this is done via some kind of read-eval-print loop.
  • Method Details

    • newShellSession

      ShellSession newShellSession(ShellRequest request) throws IOException
      Create a new interactive shell session.

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

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