use of com.tony.billing.filters.wapper.TokenServletRequestWrapperWithFile in project BillingDubbo by TonyJiangWJ.
the class XssTokenizeFilter method doFilterInternal.
@Override
protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
TokenServletRequestWrapper request;
if (StringUtils.equals(httpServletRequest.getContentType(), MULTIPART_CONTENT)) {
request = new TokenServletRequestWrapperWithFile(new CommonsMultipartResolver().resolveMultipart(httpServletRequest));
} else {
request = new TokenServletRequestWrapper(httpServletRequest);
}
filterChain.doFilter(request, httpServletResponse);
}
Aggregations