I'm building a web service with DropWizard 0.7.0 that produces JavaScript output using a Mustache template. I'd like to minify and obfuscate the generated JavaScript.
In Jersey 2.x's manual, I see that one can define interceptors, specifically WriterInterceptors, for manipulating HTTP response entities. This feels like the appropriate place for the minification/obfuscation as it should occur after the template has been applied. However, DW 0.7.0 uses Jersey 1.18.1.
I'm aware there's a branch of DropWizard with Jersey 2.x support, but I'm keen to use the standard DW distribution.
Is there a way of intercepting the response HTTP entity/body after a template has been applied using DW 0.7.0/Jersey 1.18.1?