Mercurial Hosting > luan
comparison src/luan/modules/http/LuanHandler.java @ 829:dfa742c663f9
remove ContinuationFilter and FauxContinuation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 15 Sep 2016 18:16:25 -0600 |
parents | e2a446c5c7c4 |
children | ad495e897c32 |
comparison
equal
deleted
inserted
replaced
828:8579194add85 | 829:dfa742c663f9 |
---|---|
8 import javax.servlet.http.HttpServletResponse; | 8 import javax.servlet.http.HttpServletResponse; |
9 import org.slf4j.Logger; | 9 import org.slf4j.Logger; |
10 import org.slf4j.LoggerFactory; | 10 import org.slf4j.LoggerFactory; |
11 import org.eclipse.jetty.server.Request; | 11 import org.eclipse.jetty.server.Request; |
12 import org.eclipse.jetty.server.handler.AbstractHandler; | 12 import org.eclipse.jetty.server.handler.AbstractHandler; |
13 import org.eclipse.jetty.continuation.ContinuationSupport; | |
13 import luan.Luan; | 14 import luan.Luan; |
14 import luan.LuanState; | 15 import luan.LuanState; |
15 import luan.LuanTable; | 16 import luan.LuanTable; |
16 import luan.LuanFunction; | 17 import luan.LuanFunction; |
17 import luan.LuanJavaFunction; | 18 import luan.LuanJavaFunction; |
50 } | 51 } |
51 | 52 |
52 @Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) | 53 @Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) |
53 throws IOException | 54 throws IOException |
54 { | 55 { |
56 //System.out.println("getContinuation = "+ContinuationSupport.getContinuation(request)); | |
55 if( target.endsWith("/") ) | 57 if( target.endsWith("/") ) |
56 target += welcomeFile; | 58 target += welcomeFile; |
57 Thread thread = Thread.currentThread(); | 59 Thread thread = Thread.currentThread(); |
58 String oldName = thread.getName(); | 60 String oldName = thread.getName(); |
59 thread.setName(request.getHeader("host")+request.getRequestURI()); | 61 thread.setName(request.getHeader("host")+request.getRequestURI()); |