package com.decentralizeddatabase;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import java.io.IOException;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.AbstractHandler;

public class DecentralizedDDB extends AbstractHandler {

    private static final int PORT = 8080;

    public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
	throws IOException, ServletException {
	response.setContentType("text/html;charset=utf-8");
	response.setStatus(HttpServletResponse.SC_OK);
	baseRequest.setHandled(true);
	response.getWriter().println("<h1>Hello Tatez<h1>");
    }

    public static void main(String[] args) throws Exception {
	final Server server = new Server(PORT);
	server.setHandler(new DecentralizedDDB());

	server.start();
	server.join();
    }
}

@@ -328,16 +328,85 @@
 ndler;%0A%0A
+import static sun.net.www.protocol.http.AuthCacheValue.Type.Server;%0A%0A
 public c
@@ -454,16 +454,36 @@
 dler %7B%0A%0A
+%09public String val;%0A
     priv
@@ -517,16 +517,72 @@
  8080;%0A%0A
+    DecentralizedDDB(String val)%7B%0A%09%09this.val = val;%0A%09%7D%0A%0A
     publ
@@ -691,16 +691,20 @@
 ponse)%0A%09
+    
 throws I
@@ -734,17 +734,24 @@
 ption %7B%0A
-%09
+        
 response
@@ -794,17 +794,24 @@
 tf-8%22);%0A
-%09
+        
 response
@@ -849,17 +849,24 @@
 SC_OK);%0A
-%09
+        
 baseRequ
@@ -887,17 +887,24 @@
 (true);%0A
-%09
+        
 response
@@ -928,29 +928,11 @@
 tln(
-%22%3Ch1%3EHello Tatez%3Ch1%3E%22
+val
 );%0A 
@@ -999,17 +999,24 @@
 ption %7B%0A
-%09
+        
 final Se
@@ -1051,54 +1051,115 @@
 T);%0A
-%09server.setHandler(new DecentralizedDDB());%0A%0A%09
+        DecentralizedDDB ddb = new DecentralizedDDB(%22Hello%22);%0A        server.setHandler(ddb);%0A    %0A        
 serv
@@ -1170,17 +1170,24 @@
 tart();%0A
-%09
+        
 server.j

update jetty test