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-23, BSD License, Christian Gruen, Dirk Kirsten
    • Constructor Detail

      • BaseXHTTP

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

      • 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
      • 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