It's a bit kludgey, but you could decorate the
ResponseCompressionAnalyzer service, something like:

public ResponseCompressionAnalyzer
decorateResonseCompressionAnalyzer(final ResponseCompressionAnalyzer
delegate)
{
  return new REsponseCompressionAnalyzer() {
    public boolean isGzipSupported() { return delegate.isGzipSupported(); }
  public     boolean isCompressable(String contentType) {
    if (contentType.equals("application/json")) return true;

return delegate.isCompressable(contentType);
}
};

}

On Thu, Sep 16, 2010 at 7:50 AM, Michael Dukaczewski
<m.dukaczew...@tu-bs.de> wrote:
> I know. I have been following the topic. But now I have the problem that
> I have to transfer very large JSON objects. The application on which I
> am working is just for a small group of people (intranet) where I can
> make browser decisions. With luck, I can find a configuration that works
> well in my case with gzip compression. So is there a way to reactivate it?
>
>
> Am 16.09.2010 16:12, schrieb Thiago H. de Paula Figueiredo:
>> On Thu, 16 Sep 2010 10:40:08 -0300, Michael Dukaczewski
>> <m.dukaczew...@tu-bs.de> wrote:
>>
>>> thanks for your answer, but that does not help me.
>>> Is there a simple workaround to reactivate gzip compression for json?
>>
>> It was disabled because it cause problems in some browsers.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to