[ 
https://issues.apache.org/jira/browse/WINK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754900#action_12754900
 ] 

Michael Elman commented on WINK-152:
------------------------------------

bq. "do the right thing" 
I'm not sure we can always know what's is the right thing...
Even in your example: why should anyone perform both deflate and gzip?

We may accept shortcuts though. Like:
{code}
@EncodeContent(gzip, deflate)
public Response
{code}

bq. As far as a global encoding, would you be opposed to having a servlet 
filter that can be optionally added?
Servlet filter seems to be a good option for this use case.

> Automatic content encoding
> --------------------------
>
>                 Key: WINK-152
>                 URL: https://issues.apache.org/jira/browse/WINK-152
>             Project: Wink
>          Issue Type: New Feature
>          Components: Common
>            Reporter: Bryant Luk
>            Assignee: Bryant Luk
>         Attachments: WINK-152.patch
>
>
> It would be neat to have an automatic content encoding feature.  In 
> particular, gzipping content for clients that support it (via Accept-Encoding 
> header) can improve response times.
> A property for automatically compressing/decompressing content available in 
> Wink or an annotation specified on a resource or resource method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to