Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65307 invoked from network); 25 Jul 2007 20:31:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 20:31:30 -0000 Received: (qmail 27406 invoked by uid 500); 25 Jul 2007 20:31:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27385 invoked by uid 500); 25 Jul 2007 20:31:19 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 27374 invoked by uid 99); 25 Jul 2007 20:31:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 13:31:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.240.77.85] (HELO sccrmhc15.comcast.net) (63.240.77.85) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 13:31:18 -0700 Received: from [192.168.1.101] (c-68-50-0-179.hsd1.va.comcast.net[68.50.0.179]) by comcast.net (sccrmhc15) with ESMTP id <200707252030570150021qpne>; Wed, 25 Jul 2007 20:30:57 +0000 Message-ID: <46A7B2FF.5060101@christopherschultz.net> Date: Wed, 25 Jul 2007 16:30:55 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Logging all data sent to client References: <86aa493a0707240228v1055e371s4b4acd9e8081c7af@mail.gmail.com> <46A5D2B1.9080007@joedog.org> <86aa493a0707240334y2a0d18cdg3f3183b26eba63fa@mail.gmail.com> <46A5D829.2020707@joedog.org> <86aa493a0707240353w56fad8d0h9d59a7a4cf650362@mail.gmail.com> <54703.74.92.108.114.1185277219.squirrel@webmail.cornell.edu> <86aa493a0707240459o3ebaaf67qb48358d0bb0d07dc@mail.gmail.com> <86aa493a0707240657v7a0b2c9amc74965a8481c48f9@mail.gmail.com> <46A77C88.1060209@christopherschultz.net> <86aa493a0707251319w5b897736n18ff9770150e052c@mail.gmail.com> In-Reply-To: <86aa493a0707251319w5b897736n18ff9770150e052c@mail.gmail.com> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ben, ben short wrote: > I ripped and altered the code of the Compression Filter servlet > example from tomcat 5.5.23. One other note: since you were using a compression filter as an example, I can see why they didn't do the whole "writer" thing. A compressed stream cannot use a Writer since the output must be binary. A writer primarily handles line-ending conversion which would break any compression output generated. Since you are not bound by the requirement that an OutputStream be used, I would recommend handling the Writer separately. But, hey, if it works, it works, right? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGp7L/9CaO5/Lv0PARAsWZAJ42RaxekZB/uH8iCHoJu0aPclnpwgCeLHXl /DG3WHjOB4Z8Kb1AXifKLqE= =VpkL -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org