Mercurial Hosting > luan
annotate 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 |
rev | line source |
---|---|
1171 | 1 package luan.modules.http; |
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 } |