Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B344699A7 for ; Sun, 30 Sep 2012 08:43:04 +0000 (UTC) Received: (qmail 19233 invoked by uid 500); 30 Sep 2012 08:43:03 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 19172 invoked by uid 500); 30 Sep 2012 08:43:03 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 19145 invoked by uid 99); 30 Sep 2012 08:43:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2012 08:43:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2012 08:42:56 +0000 Received: by vcbfl15 with SMTP id fl15so5942333vcb.18 for ; Sun, 30 Sep 2012 01:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iz/hxoV8B60CDnYmnVnjXNYlr+X4Is60KgZ71P3ZpD0=; b=tHwTp5nB3s8H21+5nxvywIU1XPXpl2v5DrAqoiCzGsNRhvbfLaqi9t78NjUlXhA9VY Asdv06494gwvmJgCk3goOz4ZrSRgFoPNODf+1ndzIg71Ny7i5oYPIfC0KxZaeWy7BT0R 4Uz75Nq6rmVplkNoJqeh8AXJ4NtfV4ny2ccyLEZ+L7GBTjRujbDtwtiza/TzljC7FE/l wKkp3JVn1eLDcssbCnk7+tmSGpatKt1VLeKq4bpBWIhs4yayEqqIZ2oYHmA10SZfBL0y 7BLd5fDc6HnlH5+3mNRM4U1xnjUNyaRa2GKw5pVR8P/f5DkkHs99X1QUH0xWypO2ZTXX M/Zg== MIME-Version: 1.0 Received: by 10.58.12.231 with SMTP id b7mr6816185vec.28.1348994555713; Sun, 30 Sep 2012 01:42:35 -0700 (PDT) Received: by 10.58.213.97 with HTTP; Sun, 30 Sep 2012 01:42:35 -0700 (PDT) In-Reply-To: <3A455CB4-8F1D-412C-9B34-107BD28C57DA@itcf.biz> References: <3A455CB4-8F1D-412C-9B34-107BD28C57DA@itcf.biz> Date: Sun, 30 Sep 2012 12:42:35 +0400 Message-ID: Subject: Re: Custom compression filters From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 2012/9/29 Florian Fray : > Dear TC Devs, > > while looking around in TC 7 I've found no possibility to plug-in a custom compression filter. > > So I've had a quick look at the code to find out that the gzip-handling is coded into AbstractHttp11Processor. Only HTTP protocol management is performed by AbstractHttp11Processor. The gzip support is just an org.apache.coyote.http11.OutputFilter. > Though I could create a custom processor, I'd like to know whether there's any interest in having the standard processors supporting custom compressions. > There might be an interest, but until it is really requested by someone, and someone takes the time to implement it (aka scratch their own itch), very little can be done. Do you care to explain what "custom" compressions do you need? Can you propose a patch? If you need help to understand Tomcat code / writing a patch, just ask on this list. 2012/9/30 Jess Holle : > It is quite possible to write a custom compression filter as a servlet > filter that will work across multiple servlet engines. > +1. There is a sample gzip filter in the examples webapp (compressionFilters.CompressionFilter). There exists a gzip filter in the Ehcache project. It is likely that there are others as well. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org