1 17 package org.alfresco.web.app.servlet; 18 19 import java.io.IOException ; 20 21 import javax.servlet.Filter ; 22 import javax.servlet.FilterChain ; 23 import javax.servlet.FilterConfig ; 24 import javax.servlet.ServletException ; 25 import javax.servlet.ServletRequest ; 26 import javax.servlet.ServletResponse ; 27 28 import org.alfresco.web.app.Application; 29 30 31 38 public class ModeDetectionFilter implements Filter 39 { 40 43 public void init(FilterConfig config) throws ServletException 44 { 45 } 47 48 51 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) 52 throws IOException , ServletException 53 { 54 Application.setInPortalServer(false); 57 58 chain.doFilter(req, res); 60 } 61 62 65 public void destroy() 66 { 67 } 69 } 70 | Popular Tags |