[
https://issues.apache.org/jira/browse/WINK-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752756#action_12752756
]
Hudson commented on WINK-162:
-----------------------------
Integrated in Wink-Trunk-JDK1.5 #135 (See
[http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/135/])
Add integration test for wink client Accept header
See []
Add AcceptHeaderHandler to client.
Move the setting of the client Accept header
Allows handlers to set the header if necessary.
Add AcceptHeaderHandler to automatically set
Accept header if possible.
Also add option to disable handler.
See []
> 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
> 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.
-
You can reply to this email to add a comment to the issue online.