Mercurial Hosting > luan
comparison src/luan/modules/http/NotFound.java @ 1000:32d4b569567c
simplify handle()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 19 Oct 2016 04:22:51 -0600 |
parents | fe63c508a177 |
children | 0d884377e923 |
comparison
equal
deleted
inserted
replaced
999:74b9daf2826c | 1000:32d4b569567c |
---|---|
1 package luan.modules.http; | 1 package luan.modules.http; |
2 | 2 |
3 import java.io.IOException; | 3 import java.io.IOException; |
4 import javax.servlet.http.HttpServletRequest; | |
5 import javax.servlet.http.HttpServletResponse; | 4 import javax.servlet.http.HttpServletResponse; |
6 import org.eclipse.jetty.server.Request; | 5 import org.eclipse.jetty.server.Request; |
7 import org.eclipse.jetty.server.handler.AbstractHandler; | 6 import org.eclipse.jetty.server.handler.AbstractHandler; |
8 | 7 |
9 | 8 |
12 | 11 |
13 public NotFound(LuanHandler luanHandler) { | 12 public NotFound(LuanHandler luanHandler) { |
14 this.luanHandler = luanHandler; | 13 this.luanHandler = luanHandler; |
15 } | 14 } |
16 | 15 |
17 @Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) | 16 @Override |
17 public void handle(String target,Request request,HttpServletResponse response) | |
18 throws IOException | 18 throws IOException |
19 { | 19 { |
20 luanHandler.handle("/not_found",baseRequest,request,response); | 20 luanHandler.handle("/not_found",request,response); |
21 } | 21 } |
22 | 22 |
23 } | 23 } |