Starts the HTTP server in a separate process. @param args command-line arguments @throws BaseXException database exception
(final String... args)
| 331 | * @throws BaseXException database exception |
| 332 | */ |
| 333 | public static void start(final String... args) throws BaseXException { |
| 334 | // start server and check if it caused an error message |
| 335 | final String error = Util.error(Util.start(BaseXHTTP.class, args), 2000); |
| 336 | if(error != null) throw new BaseXException(error.trim()); |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Stops the server. |