Class CmsRemoteShellClient

java.lang.Object
org.opencms.rmi.CmsRemoteShellClient

public class CmsRemoteShellClient extends Object
Client application used to connect locally to the CmsShell server.

  • Field Details

  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Main method, which starts the shell client.

      Parameters:
      args - the command line arguments
      Throws:
      Exception - if something goes wrong
    • parseArgs

      public Map<String,String> parseArgs(String[] args)
      Validates, parses and returns the command line arguments.

      Parameters:
      args - the command line arguments
      Returns:
      the map of parsed arguments
    • run

      public void run() throws Exception
      Main loop of the shell server client.

      Reads commands from either stdin or a file, executes them remotely and displays the results.

      Throws:
      Exception - if something goes wrong