1160
|
1 package luan.modules.http.impl;
|
377
|
2
|
1160
|
3 import luan.webserver.Request;
|
|
4 import luan.webserver.Response;
|
|
5 import luan.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 }
|