Commit 9ae92636 authored by TheBeggs's avatar TheBeggs

Add comment for else case

parent 4652d3e6
Pipeline #112431 passed with stages
in 20 seconds
......@@ -24,6 +24,10 @@ public class WebServer {
server.start();
}
public static void main(String[] args) throws Exception {
new WebServer();
}
static class Website extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
......@@ -34,16 +38,12 @@ public class WebServer {
} else if (resultFormat.toLowerCase().equals("markdown")) {
new MarkdownResultPage(query, new QueryProcessor().process(query)).writeTo(resp);
} else if (resultFormat.toLowerCase().equals("pdf")) {
// TODO: Implement
// new PDFResultPage(query, new QueryProcessor().process(query)).writeTo(resp);
} else {
//Intentionally redirect to HTML on error to avoid cluttering with files
new HTMLResultPage(query, new QueryProcessor().process(query)).writeTo(resp);
}
}
}
public static void main(String[] args) throws Exception {
new WebServer();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment