private void addRequestCachingFilter ( ) { FilterMapping filterMapping = new FilterMapping ( ) ; filterMapping . setFilterName ( "request-caching-filter" ) ; filterMapping . setPathSpec ( "/*" ) ; FilterHolder filterHolder = new FilterHolder ( new RequestCachingServletFilter ( ) ) ; filterHolder . setName ( "request-caching-filter" ) ; servletHandler . addFilter ( filterHolder , filterMapping ) ; }
Adds request caching filter used for not using request data when logging incoming requests