-
- /**
- * Private constructor to enforce use of singleton; use getInstance().
- *
- * @throws BindException
- * if no free port can be assigned
- */
- private HttpServer() throws BindException
- {
- // use getInstance()
-
- startServer();
-
- /*
- * Provides a REST server by default; add more programmatically as required
- */
- registerHandler(RestHandler.getInstance());
- }
-