Java implementation of a simple HttpServer