cn.patterncat.tracing.component.servlet.MultiReadRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extra-sleuth-tracing-configuration Show documentation
Show all versions of extra-sleuth-tracing-configuration Show documentation
extra-sleuth-tracing-configuration
The newest version!
package cn.patterncat.tracing.component.servlet;
import org.springframework.web.util.ContentCachingRequestWrapper;
import javax.servlet.http.HttpServletRequest;
/**
* NOTE spring的这个是大小限制的,这个要注意
* 还是使用MultiReadableHttpServletRequest安全一点
* Created by cat on 2018-12-04.
*/
public class MultiReadRequest extends ContentCachingRequestWrapper {
public MultiReadRequest(HttpServletRequest request) {
super(request);
}
public MultiReadRequest(HttpServletRequest request, int contentCacheLimit) {
super(request, contentCacheLimit);
}
@Override
protected void handleContentOverflow(int contentCacheLimit) {
super.handleContentOverflow(contentCacheLimit);
}
}