Class Main

java.lang.Object
net.targetr.rc.Main

public class Main extends Object
Starts the Remote Control Web server.
Author:
Dr Michael Gardiner
  • Constructor Details

    • Main

      public Main() throws IOException
      Initializes the server application.
      Throws:
      IOException - if the HTTP server fails to instantiate
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      The main entry point for the Remote Control Web application. Parses arguments, loads settings, initializes the HTTP server, and starts listening.
      Parameters:
      args - command line arguments, optionally expecting a path to a properties file as the first argument
      Throws:
      Exception - if server initialization or startup fails
    • get

      public static Main get()
      Retrieves the singleton Main instance.
      Returns:
      the main application instance
    • getServer

      public HttpServer getServer()
      Retrieves the underlying HTTP server.
      Returns:
      the configured HTTP server instance