Audit Log logging requestContent and responseContent with Jersey

36 views
Skip to first unread message

David Capwell

unread,
Aug 5, 2019, 4:48:45 PM8/5/19
to dropwizard-user
I want to make it so my audit log captures both the request and the response.  I found that requestContent and responseContent say it should do this, but on first attempt I got "" back.

After some googling I found that I had to add the following

environment.servlets().addFilter("teeFilter", TeeFilter.class).addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), true, "/*");

This seems to work for Servlets, but for Jersey this doesn't seem to work.

I was wondering how I can get this feature to work with Jersey as well?

Thanks for your time!
Reply all
Reply to author
Forward
0 new messages