@@ -0,0 +1,1182 @@
+/**%0A * @file SimpleHttpServer.java%0A * @author Valery Samovich%0A * @version 1%0A * @date 2015/02/06%0A */%0A%0Apackage com.samovich.specialized.httpserver;%0A%0Aimport java.io.IOException;%0Aimport java.io.OutputStream;%0Aimport java.net.InetSocketAddress;%0A%0Aimport com.sun.net.httpserver.HttpExchange;%0Aimport com.sun.net.httpserver.HttpHandler;%0Aimport com.sun.net.httpserver.HttpServer;%0A%0A/*%0A * a simple static http server%0A*/%0Apublic class SimpleHttpServer %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        HttpServer server = HttpServer.create(new InetSocketAddress(8000), 0);%0A        server.createContext(%22/test%22, new MyHandler());%0A        server.setExecutor(null); // creates a default executor%0A        server.start();%0A        System.out.println(%22Server started.%22);%0A    %7D%0A%0A    static class MyHandler implements HttpHandler %7B%0A        %0A        public void handle(HttpExchange t) throws IOException %7B%0A            String response = %22Http Server is started on port 8000%22;%0A            t.sendResponseHeaders(200, response.length());%0A            OutputStream os = t.getResponseBody();%0A            os.write(response.getBytes());%0A            os.close();%0A        %7D%0A        %0A    %7D%0A    %0A%7D%0A

Add example of Http Server and fix package name