I have a RestEasy + Java EE application. When I add @GZIP to a component class, the server-answer is gzipped, if the client sends "accepts:gzip"
Is there a way to generally enable gzip for all components? I don't like to add the annotation to every class.
I'm using RestEasy JAX-RS 3.0.1
No, there is no way with annotations to enable gzip for all resources. If you wanted to forego adding the annotation to every class you could create a servlet filter that looks at the incoming headers and gzips the response on the way out.