Class GZIPEncodingInterceptorWithVariableCompression

  • All Implemented Interfaces:
    javax.ws.rs.ext.WriterInterceptor

    public class GZIPEncodingInterceptorWithVariableCompression
    extends Object
    implements javax.ws.rs.ext.WriterInterceptor
    An alternative to GZIPEncodingInterceptor that allows changing the GZIP deflater's compression level.
    Author:
    [email protected], Bill Burke
    • Constructor Detail

      • GZIPEncodingInterceptorWithVariableCompression

        public GZIPEncodingInterceptorWithVariableCompression​(int level)
    • Method Detail

      • aroundWriteTo

        public void aroundWriteTo​(javax.ws.rs.ext.WriterInterceptorContext context)
                           throws IOException,
                                  javax.ws.rs.WebApplicationException
        Specified by:
        aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
        Throws:
        IOException
        javax.ws.rs.WebApplicationException