diff --git a/bin/org/eu/lumiere/utils/BasicResponse.class b/bin/org/eu/lumiere/utils/BasicResponse.class deleted file mode 100644 index 31460a0..0000000 Binary files a/bin/org/eu/lumiere/utils/BasicResponse.class and /dev/null differ diff --git a/src/org/eu/lumiere/utils/BasicResponse.java b/src/org/eu/lumiere/utils/BasicResponse.java deleted file mode 100644 index 2522e9a..0000000 --- a/src/org/eu/lumiere/utils/BasicResponse.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.eu.lumiere.utils; - -import org.eu.lumiere.net.http.HttpRequest; -import org.eu.lumiere.net.http.HttpRequestHandler; -import org.eu.lumiere.net.http.HttpResponse; - -public class BasicResponse implements HttpRequestHandler { - - private String body = "BasicResponse is running"; - private boolean html_response = false; - - public BasicResponse(String body, boolean rhtml) { - this.body = body == null ? this.body : body; - this.html_response = rhtml; - } - - @Override - public void onRequestReceived(HttpRequest request, HttpResponse response) { - response.setContentType(String.format("text/%s", html_response ? "html" : "plan")); - response.push(body); - } - -}