java - How to produce zip data from rest easy -


i using rest easy in java application.
end goal if request content-type of type zip, example application/x-gzip, response should zipped.

i read in rest easy document can using gzip annotation. rest easy take care of it.

but problem is, have quite lot web api calls, therefore adding annotation in methods not right solution.

i looking solution in such way, define annotation @ 1 place instead of adding annotation(gzip) on every method, , if user has specified content type of zip, response zipped , sent user. filter or something.

able find known dynamicfeature in documentation not know how achieve or implement this.

can suggest how achieve or other way if exists.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -