server.listen(port, host, new Handler<AsyncResult<HttpServer>>() {
@Override
public void handle(AsyncResult<HttpServer> result) {
final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
if (result.succeeded()) {
container.logger().info("Http server listening for " + listenPath);
} else {
container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
}
if (doneHandler != null) {
doneHandler.handle(result);