Mercurial Hosting > luan
annotate src/luan/modules/http/NotFound.java @ 1358:1d31c1f3ea30
better not_found_handler
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 19 Apr 2019 00:47:58 -0600 |
parents | 643cf1c37723 |
children | a3d0d1c2ce89 |
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) { |
1358
1d31c1f3ea30
better not_found_handler
Franklin Schmidt <fschmidt@gmail.com>
parents:
1347
diff
changeset
|
16 return luanHandler.handle(request,true); |
377 | 17 } |
18 | |
19 } |