Mercurial Hosting > luan
annotate src/luan/modules/http/NotFound.java @ 1347:643cf1c37723
move webserver to lib and bug fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 25 Feb 2019 13:02:33 -0700 |
parents | 794ddcfbee20 |
children | 1d31c1f3ea30 |
rev | line source |
---|---|
1171 | 1 package luan.modules.http; |
377 | 2 |
1347
643cf1c37723
move webserver to lib and bug fixes
Franklin Schmidt <fschmidt@gmail.com>
parents:
1171
diff
changeset
|
3 import luan.lib.webserver.Request; |
643cf1c37723
move webserver to lib and bug fixes
Franklin Schmidt <fschmidt@gmail.com>
parents:
1171
diff
changeset
|
4 import luan.lib.webserver.Response; |
643cf1c37723
move webserver to lib and bug fixes
Franklin Schmidt <fschmidt@gmail.com>
parents:
1171
diff
changeset
|
5 import luan.lib.webserver.Handler; |
377 | 6 |
7 | |
1160 | 8 public class NotFound implements Handler { |
1167 | 9 private final LuanHandler luanHandler; |
377 | 10 |
1167 | 11 public NotFound(LuanHandler luanHandler) { |
12 this.luanHandler = luanHandler; | |
377 | 13 } |
14 | |
1160 | 15 @Override public Response handle(Request request) { |
1167 | 16 return luanHandler.handle(request,"site:/not_found.luan"); |
377 | 17 } |
18 | |
19 } |