Mercurial Hosting > luan
comparison src/luan/modules/http/jetty/NotFound.java @ 1136:d30d400fd43d
add http/jetty
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 29 Jan 2018 17:50:49 -0700 |
parents | src/luan/modules/http/NotFound.java@0d884377e923 |
children |
comparison
equal
deleted
inserted
replaced
1135:707a5d874f3e | 1136:d30d400fd43d |
---|---|
1 package luan.modules.http.jetty; | |
2 | |
3 import java.io.IOException; | |
4 import javax.servlet.http.HttpServletRequest; | |
5 import javax.servlet.http.HttpServletResponse; | |
6 import org.eclipse.jetty.server.Request; | |
7 import org.eclipse.jetty.server.handler.AbstractHandler; | |
8 | |
9 | |
10 public class NotFound extends AbstractHandler { | |
11 private final LuanHandler luanHandler; | |
12 | |
13 public NotFound(LuanHandler luanHandler) { | |
14 this.luanHandler = luanHandler; | |
15 } | |
16 | |
17 @Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) | |
18 throws IOException | |
19 { | |
20 luanHandler.handle("/not_found",baseRequest,request,response); | |
21 } | |
22 | |
23 } |