public HttpServer(Settings settings, SystemLogger systemLogger, RestController restController, API api) {
this.settings = settings;
this.systemLogger = systemLogger;
this.restController = restController;
this.api = api;
registerHttpStartProcessor(new DefaultHttpStartProcessor());
registerHttpFinishProcessor(new DefaultHttpFinishProcessor());
Environment environment = new Environment(settings);
disableMysql = settings.getAsBoolean(ServiceFramwork.mode + ".datasources.mysql.disable", false);
server = new Server();
SelectChannelConnector connector = new SelectChannelConnector();