tweak so handy proxy server works

This commit is contained in:
Jesse McConnell 2011-08-17 10:20:01 -05:00
parent fa7364ac1b
commit 53f2a4f62b
1 changed files with 4 additions and 4 deletions

View File

@ -33,10 +33,10 @@ public class AsyncProxyServer
ServletHandler handler=new ServletHandler(); ServletHandler handler=new ServletHandler();
server.setHandler(handler); server.setHandler(handler);
FilterHolder gzip = handler.addFilterWithMapping("org.eclipse.jetty.servlet.GzipFilter","/*",0); //FilterHolder gzip = handler.addFilterWithMapping("org.eclipse.jetty.servlets.GzipFilter","/*",0);
gzip.setAsyncSupported(true); //gzip.setAsyncSupported(true);
gzip.setInitParameter("minGzipSize","256"); //gzip.setInitParameter("minGzipSize","256");
ServletHolder proxy = handler.addServletWithMapping("org.eclipse.proxy.AsyncProxyServlet","/"); ServletHolder proxy = handler.addServletWithMapping("org.eclipse.jetty.servlets.ProxyServlet","/");
proxy.setAsyncSupported(true); proxy.setAsyncSupported(true);
server.start(); server.start();