cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raj Anand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4849) WebClient needs to support JAX-RS 2.0 GenericType
Date Sat, 02 Mar 2013 18:37:13 GMT

    [ https://issues.apache.org/jira/browse/CXF-4849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591472#comment-13591472
] 

Raj Anand commented on CXF-4849:
--------------------------------

Sergey,

I have my custom provider already registered in the JAXRSClientFactoryBean from which I get
the WebClient.

However, i got it working by overriding the getClassContext method of the AbstractJAXBProvider
in my custom provider. Basically, I added some extra code to handle Parameterized types.

IMHO , if we can have this change in the AbstactJAXBProvider it will be good. I am attaching
a patch for the proposed change in AbstactJAXBProvider. Kindly review it and include the code
if it looks OK to you.

Regards,
Raj
                
> WebClient needs to support JAX-RS 2.0 GenericType
> -------------------------------------------------
>
>                 Key: CXF-4849
>                 URL: https://issues.apache.org/jira/browse/CXF-4849
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>             Fix For: 2.8.0, 2.7.4
>
>         Attachments: cxf-4849.patch
>
>
> This is useful for processing generic responses, example,
> {code:java}
> GenericType<List<Book>> genericResponseType = new GenericType<List<Book>>()
{};
> List<Book> books = webClient.get(genericResponseType);
> // or
> List<Book> books = webClient.post(someObject, genericResponseType);
> {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

Mime
View raw message