Mercurial Hosting > luan
comparison src/luan/modules/http/NotFound.java @ 786:fe63c508a177
add Http.reset_luan()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 02 Sep 2016 17:43:29 -0600 |
parents | 1a68fc55a80c |
children | 32d4b569567c |
comparison
equal
deleted
inserted
replaced
785:d69d3c51c44e | 786:fe63c508a177 |
---|---|
2 | 2 |
3 import java.io.IOException; | 3 import java.io.IOException; |
4 import javax.servlet.http.HttpServletRequest; | 4 import javax.servlet.http.HttpServletRequest; |
5 import javax.servlet.http.HttpServletResponse; | 5 import javax.servlet.http.HttpServletResponse; |
6 import org.eclipse.jetty.server.Request; | 6 import org.eclipse.jetty.server.Request; |
7 import luan.LuanState; | 7 import org.eclipse.jetty.server.handler.AbstractHandler; |
8 | 8 |
9 | 9 |
10 public class NotFound extends LuanHandler { | 10 public class NotFound extends AbstractHandler { |
11 private final LuanHandler luanHandler; | |
11 | 12 |
12 public NotFound(LuanState luan,String loggerRoot) { | 13 public NotFound(LuanHandler luanHandler) { |
13 super(luan,loggerRoot); | 14 this.luanHandler = luanHandler; |
14 } | 15 } |
15 | 16 |
16 @Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) | 17 @Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) |
17 throws IOException | 18 throws IOException |
18 { | 19 { |
19 super.handle("/not_found",baseRequest,request,response); | 20 luanHandler.handle("/not_found",baseRequest,request,response); |
20 } | 21 } |
21 | 22 |
22 } | 23 } |