public class FailedRequestFilter extends FilterBase
Note that it has side effect that it triggers parameter parsing and thus
consumes the body for POST requests. Parameter parsing does check content
type of the request, so there should not be problems with addresses that use
request.getInputStream() and request.getReader(),
if requests parsed by them do not use standard value for content mime-type.
sm| Constructor | Description |
|---|---|
FailedRequestFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
|
protected Log |
getLogger() |
|
protected boolean |
isConfigProblemFatal() |
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.
|
initprotected Log getLogger()
getLogger in class FilterBasepublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionprotected boolean isConfigProblemFatal()
FilterBaseisConfigProblemFatal in class FilterBasetrue if a problem should trigger the failure of this
filter, else falseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.