routeMatcherHandler.handle(rm);
}
final String host = configurator.getHost();
final int port = configurator.getPort();
final Container container = configurator.getContainer();
// Start listening and log success/failure
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);
}
}