Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacement for RequestDumperValve in Tomcat 7

Tags:

Tomcat 7 does not support the RequestDumperValve that was available Tomcat 6 and earlier.

What is its recommended replacement in Tomcat 7?

like image 834
Stephen C Avatar asked Apr 15 '11 05:04

Stephen C


1 Answers

And to answer my own question, more extensive Googling came up with this:

RequestDumperValve has been replaced by RequestDumperFilter, part of an effort to replace Valves with Filters to be more spec-compliant, and therefore more flexible. This is the class you want: org.apache.catalina.filters.RequestDumperFilter

Also see: http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Request_Dumper_Filter

Note that you will configure this component in web.xml, now, and not in context.xml.

like image 103
Stephen C Avatar answered Sep 30 '22 15:09

Stephen C