| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- ////
- //// Source code recreated from a .class file by IntelliJ IDEA
- //// (powered by Fernflower decompiler)
- ////
- //
- //package com.happy.filter;
- //
- //import javax.servlet.*;
- //import javax.servlet.http.HttpServletRequest;
- //import javax.servlet.http.HttpServletResponse;
- //import javax.servlet.http.HttpSession;
- //import java.io.IOException;
- //import java.util.Enumeration;
- //
- //public class LoginFilter implements Filter {
- // Enumeration param;
- //
- // public LoginFilter() {
- // }
- //
- // public void init(FilterConfig filterConfig) throws ServletException {
- // this.param = filterConfig.getInitParameterNames();
- // }
- //
- // public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
- // HttpServletRequest servletRequest = (HttpServletRequest)request;
- // HttpServletResponse servletResponse = (HttpServletResponse)response;
- // HttpSession session = servletRequest.getSession();
- // String path = servletRequest.getRequestURI();
- // String isLogin = (String)session.getAttribute("isLogin");
- // if (path.indexOf("login.jsp") <= -1 && path.indexOf("branduserbrandlist.action") <= -1 && path.indexOf("/weixin/") <= -1 && path.indexOf("/loginlogin.action") <= -1 && path.indexOf("/WxPaylog.action") <= -1 && path.indexOf("register2.jsp") <= -1 && path.indexOf("/WxPayregister2.action") <= -1) {
- // if (isLogin != null && !"".equals(isLogin)) {
- // chain.doFilter(request, response);
- // } else {
- // StringBuffer fileURL = servletRequest.getRequestURL();
- // if (fileURL.indexOf(".css") > 0 || fileURL.indexOf(".png") > 0 || fileURL.indexOf(".jpg") > 0 || fileURL.indexOf(".bmp") > 0 || fileURL.indexOf(".gif") > 0 || fileURL.indexOf(".apk") > 0 || fileURL.indexOf(".ipa") > 0 || fileURL.indexOf(".woff") > 0 || fileURL.indexOf(".ttf") > 0 || fileURL.indexOf("image.jsp") > 0) {
- // chain.doFilter(servletRequest, servletResponse);
- // return;
- // }
- //
- // String contextPath = servletRequest.getContextPath();
- // servletResponse.sendRedirect(contextPath + "/jsp/login.jsp");
- // }
- //
- // } else {
- // chain.doFilter(servletRequest, servletResponse);
- // }
- // }
- //
- // public void destroy() {
- // }
- //}
|