Hi all
We currently have an application that uses class scanning and annotations to pick up all of our resources. We just have an empty application class that extends Application and it seems that Jersey picks up our resource classes and a number of other packaged components such as JPA exception mappers.
I'd like to register the EncodingFilter and GZipEncoder so that our content gets compressed, but if I return those classes from an overridden getClasses() method on the application, none of the other components are registered automatically anymore. I can manually add in the ones from my application (though that's not very user-friendly) but I have no idea how to get a list of all the other parts that it is picking up.
Is there a way to just add some components like filters / encoders to the default set?
Also, is it possible to only enable the gzip filter for specific resources? I'm hitting this issue when it's applied to our JSONP resources:
https://java.net/jira/browse/JERSEY-2524.
(We're using Jersey 2.0 embedded in Glassfish 4.0.)
Thanks
Tom