Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Hi,
I used the CompressionFilter (it worked very well), but it needs the compressionThreshold init parameter in the web.xml file.
The javadocs says that you don't need to add this parameter. But if you don't add it, the Filter will not execute.
The doFilter() method does the following test:
if (compressionThreshold == 0) {
chain.doFilter(request, response);
return;
}
So, if the compressionThreshold is not defined, the filter will not execute.
My guess is that the compressionThreshold attribute could have some default value, and avoid more configuration in the web.xml
regards,