package de.predbo.vertx;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;

public class HelloWorldVerticle extends AbstractVerticle {

  @Override
  public void start() {
    // Create an HTTP server which simply returns "Hello World!" to each request.
    vertx.createHttpServer().requestHandler(req -> req.response().end("Hello World!")).listen(8080);
  }
}
@@ -83,13 +83,98 @@
 ore.
-Vertx
+Handler;%0Aimport io.vertx.core.http.HttpServer;%0Aimport io.vertx.core.http.HttpServerRequest
 ;%0A%0Ap
@@ -232,18 +232,17 @@
 icle %7B%0A%0A
-  
+%09
 @Overrid
@@ -243,18 +243,17 @@
 verride%0A
-  
+%09
 public v
@@ -266,20 +266,19 @@
 art() %7B%0A
-    
+%0A%09%09
 // Creat
@@ -351,12 +351,10 @@
 st.%0A
-    
+%09%09
 vert
@@ -450,9 +450,421 @@
 0);%0A
-  
+%0A%09%09createHttpServerWithoutJava8Lamdas();%0A%09%7D%0A%0A%09private void createHttpServerWithoutJava8Lamdas() %7B%0A%09%09HttpServer server = vertx.createHttpServer();%0A%0A%09%09server.requestHandler(new Handler%3CHttpServerRequest%3E() %7B%0A%09%09%09public void handle(HttpServerRequest request) %7B%0A%09%09%09%09System.out.println(%22A request has arrived on the server!%22);%0A%09%09%09%09request.response().end(%22Hello World!%22);%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09server.listen(8081, %22localhost%22);%0A%09
 %7D%0A%7D

add second server without using Java 8 lamda expression, just to see differences