/**
* AJAX使用中的字符過濾器
*/
private static final long serialVersionUID =
public void doFilter(ServletRequest servletRequest
ServletResponse servletResponse
throws IOException
/* if (logger
logger
} */
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpServletResponse response = (HttpServletResponse) servletResponse;
String requestedWith = request
String type = request
if (requestedWith != null &&
&& null != type
&&
// (
request
response
request
}
filterChain
/* if (logger
logger
} */
}
public void init(FilterConfig arg
// TODO Auto
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26232.html