Mercurial Hosting > luan
annotate 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 |
rev | line source |
---|---|
494
2b9bc97f0439
change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents:
493
diff
changeset
|
1 package luan.modules.http; |
377 | 2 |
3 import java.io.IOException; | |
4 import javax.servlet.http.HttpServletResponse; | |
5 import org.eclipse.jetty.server.Request; | |
786
fe63c508a177
add Http.reset_luan()
Franklin Schmidt <fschmidt@gmail.com>
parents:
775
diff
changeset
|
6 import org.eclipse.jetty.server.handler.AbstractHandler; |
377 | 7 |
8 | |
786
fe63c508a177
add Http.reset_luan()
Franklin Schmidt <fschmidt@gmail.com>
parents:
775
diff
changeset
|
9 public class NotFound extends AbstractHandler { |
fe63c508a177
add Http.reset_luan()
Franklin Schmidt <fschmidt@gmail.com>
parents:
775
diff
changeset
|
10 private final LuanHandler luanHandler; |
377 | 11 |
786
fe63c508a177
add Http.reset_luan()
Franklin Schmidt <fschmidt@gmail.com>
parents:
775
diff
changeset
|
12 public NotFound(LuanHandler luanHandler) { |
fe63c508a177
add Http.reset_luan()
Franklin Schmidt <fschmidt@gmail.com>
parents:
775
diff
changeset
|
13 this.luanHandler = luanHandler; |
377 | 14 } |
15 | |
1000 | 16 @Override |
17 public void handle(String target,Request request,HttpServletResponse response) | |
377 | 18 throws IOException |
19 { | |
1000 | 20 luanHandler.handle("/not_found",request,response); |
377 | 21 } |
22 | |
23 } |