diff src/luan/modules/http/NotFound.java @ 1171:794ddcfbee20

remove http/impl
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 11 Feb 2018 02:41:23 -0700
parents src/luan/modules/http/impl/NotFound.java@7e6f28c769a1
children 643cf1c37723
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/luan/modules/http/NotFound.java	Sun Feb 11 02:41:23 2018 -0700
@@ -0,0 +1,19 @@
+package luan.modules.http;
+
+import luan.webserver.Request;
+import luan.webserver.Response;
+import luan.webserver.Handler;
+
+
+public class NotFound implements Handler {
+	private final LuanHandler luanHandler;
+
+	public NotFound(LuanHandler luanHandler) {
+		this.luanHandler = luanHandler;
+	}
+
+	@Override public Response handle(Request request) {
+		return luanHandler.handle(request,"site:/not_found.luan");
+	}
+
+}