httpservices/src/main/java/ucar/httpservices/HTTPSession.java
static synchronized public void
    setGlobalCompression(String compressors)
    {
        if(globalsettings.get(Prop.COMPRESSION) != null)
            removeGlobalCompression();
        String compresslist = checkCompressors(compressors);
        if(HTTPUtil.nullify(compresslist) == null)
            throw new IllegalArgumentException("Bad compressors: " + compressors);
        globalsettings.put(Prop.COMPRESSION, compresslist);
        HttpResponseInterceptor hrsi;
        if(compresslist.contains("gzip")) {
            hrsi = new GZIPResponseInterceptor();
            rspintercepts.add(hrsi);
        }
        if(compresslist.contains("deflate")) {
            hrsi = new DeflateResponseInterceptor();
            rspintercepts.add(hrsi);
        }
    }
static synchronized public void
    setGlobalCompression(String compressors)
    {
        if(globalsettings.get(Prop.COMPRESSION) != null)
            removeGlobalCompression();
        String compresslist = checkCompressors(compressors);
        if(HTTPUtil.nullify(compresslist) == null)
            throw new IllegalArgumentException("Bad compressors: " + compressors);
        globalsettings.put(Prop.COMPRESSION, compresslist);
        HttpResponseInterceptor hrsi;
        if(compresslist.contains("gzip")) {
            hrsi = new GZIPResponseInterceptor();
            rspintercepts.add(hrsi);
        }
        if(compresslist.contains("deflate")) {
            hrsi = new DeflateResponseInterceptor();
            rspintercepts.add(hrsi);
        }
    }
Compression