Package org.basex

Class BaseXHTTP


public final class BaseXHTTP extends CLI
This is the main class for the starting the database HTTP services.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen, Dirk Kirsten
  • Constructor Details

    • BaseXHTTP

      public BaseXHTTP(String... args) throws Exception
      Constructor.
      Parameters:
      args - command-line arguments
      Throws:
      Exception - exception
  • Method Details

    • main

      public static void main(String... args)
      Main method, launching the HTTP services. Command-line arguments are listed with the -h argument.
      Parameters:
      args - command-line arguments
    • stop

      public void stop() throws IOException
      Stops the server.
      Throws:
      IOException - I/O exception
    • parseArgs

      protected void parseArgs() throws IOException
      Specified by:
      parseArgs in class Main
      Throws:
      IOException
    • start

      public static void start(String... args) throws BaseXException
      Starts the HTTP server in a separate process.
      Parameters:
      args - command-line arguments
      Throws:
      BaseXException - database exception
    • stop

      public static void stop(String host, int port) throws IOException
      Stops the server.
      Parameters:
      host - server host
      port - server port
      Throws:
      IOException - I/O exception
    • header

      public String header()
      Specified by:
      header in class Main
    • usage

      public String usage()
      Specified by:
      usage in class Main