Package org.vertx.java.platform

Examples of org.vertx.java.platform.Container


            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);
                }
            }
View Full Code Here


            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);
                }
            }
View Full Code Here

            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);
                }
            }
View Full Code Here

            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 = "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);
                }
            }
View Full Code Here

TOP

Related Classes of org.vertx.java.platform.Container

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.