Hi Anthony
On 18/09/12 21:36, Muller, Anthony wrote:
Hello Sergey,

Is there an (easy) way to accept/activate ZIP compression of REST responses?

If GZIP is acceptable then the simples option is to add @org.apache.cxf.annotation.GZIP to a root resource class.

We also have a utility for supporting Deflate [1] encoding which I guess is somewhat different to GZIP:

http://docs.oracle.com/javase/7/docs/api/java/util/zip/Deflater.html

The actual utility is in the rs xml security module - but if it were of interest then we'd make it available at the common rt/core level, let us know...

Cheers, Sergey

Thanks,
Anthony


P.S By the way, recall our conversation about making sure that a custom ResponseHandler is invoked even if the exception is thrown from the server application code, I can't seem to find that thread, but the thing which I forgot to mention last time was that providing a custom ExceptionMapper for Throwable would guarantee a Response would be avail for response filters no matter what

Reply via email to