java - What is the Jersey 2.0 equivalent of GZIPContentEncodingFilter -
i in progress migrate jerset 1.x client project jersey 2.0.
i found gzipcontentencodingfilter
not exist longer. there similar?
i stumbled on gzipencoder
not sure how plug in.
in jersey 1.17 use:
webresource r = ... r.register(new gzipcontentencodingfilter());
in jersey 2.0 search somethink like:
webtarget r = ... r.register(new gzipcontentencodingfilter());
use
webtarget r = ... r.register(gzipencoder.class);
Comments
Post a Comment