Package org.basex
Class BaseXHTTP
- java.lang.Object
-
- org.basex.util.Main
-
- org.basex.core.CLI
-
- org.basex.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringheader()static voidmain(String... args)Main method, launching the HTTP services.protected voidparseArgs()static voidstart(String... args)Starts the HTTP server in a separate process.voidstop()Stops the server.static voidstop(String host, int port)Stops the server.Stringusage()
-
-
-
Method Detail
-
main
public static void main(String... args)
Main method, launching the HTTP services. Command-line arguments are listed with the-hargument.- Parameters:
args- command-line arguments
-
stop
public void stop() throws IOExceptionStops the server.- Throws:
IOException- I/O exception
-
parseArgs
protected void parseArgs() throws IOException- Specified by:
parseArgsin classMain- 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 hostport- server port- Throws:
IOException- I/O exception
-
-