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.
| Modifier and Type | Field and Description |
|---|---|
| private final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doFilter(ServletRequest
The request to process request, ServletResponse The response associated with the request response, FilterChain Provides access to the next filter in the chain for this filter to pass the request and response
to for further processing chain)Implements jakarta. The |
| protected Log | |
| protected boolean | isConfigProblemFatal()
Overrides org. Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting. |
| private boolean |
| log | back to summary |
|---|---|
| private final Log log | |
| FailedRequestFilter | back to summary |
|---|---|
| public FailedRequestFilter() | |
| doFilter | back to summary |
|---|---|
| public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException Implements jakarta. Doc from jakarta. The
A typical implementation of this method would follow the following pattern:-
| |
| getLogger | back to summary |
|---|---|
| protected Log getLogger() Implements abstract org.
| |
| isConfigProblemFatal | back to summary |
|---|---|
| protected boolean isConfigProblemFatal() Overrides org. Doc from org. Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting.
| |
| isGoodRequest | back to summary |
|---|---|
| private boolean isGoodRequest(ServletRequest request) | |