You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2013/07/13 22:14:09 UTC

[jira] [Closed] (WINK-162) The client should send appropriate accept header when no accept specified

     [ https://issues.apache.org/jira/browse/WINK-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek closed WINK-162.
---------------------------------

    
> The client should send appropriate accept header when no accept specified
> -------------------------------------------------------------------------
>
>                 Key: WINK-162
>                 URL: https://issues.apache.org/jira/browse/WINK-162
>             Project: Wink
>          Issue Type: Improvement
>          Components: Client
>            Reporter: Eli Baram
>            Assignee: Bryant Luk
>             Fix For: 1.0
>
>         Attachments: WINK-162.patch
>
>
> Wink client hold all the providers that can be used to de serialize the response, therefore if no accept is set by the user, wink can do the fallowing to define the accept header (pseudo code ):
> {code}
> foreach (MessageBodyReader){
>   if(MessageBodyReader generics fits requested class){
>     foreach (MediaType in provider's Consume annotation){
>       if(provider.isReadable(requested class, media type)	
>         add MediaType to accept header
>       }
>     }
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira