Package com.acme

Examples of com.acme.OtherClass


    vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {
      public void handle(HttpServerRequest req) {
        System.out.println("Got request: " + req.uri);
        req.response.headers().put("Content-Type", "text/html; charset=UTF-8");
        // Make sure we can reference another source file:
        OtherClass otherClass = new OtherClass();
        req.response.end("<html><body><h1>Hello from vert.x! " + otherClass.date() + "</h1></body></html>");
      }
    }).listen(8080);
  }
View Full Code Here

TOP

Related Classes of com.acme.OtherClass

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.