Class FailedRequestFilter

java.lang.Object
org.apache.catalina.filters.FilterBase
org.apache.catalina.filters.FailedRequestFilter
All Implemented Interfaces:
Filter

public class FailedRequestFilter extends FilterBase
Filter that will reject requests if there was a failure during parameter parsing. This filter can be used to ensure that none parameter values submitted by client are lost.

Note that parameter parsing may consume the body of an HTTP request, so caution is needed if the servlet protected by this filter uses request.getInputStream() or request.getReader() calls. In general the risk of breaking a web application by adding this filter is not so high, because parameter parsing does check content type of the request before consuming the request body.