You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2013/02/22 11:30:16 UTC

[jira] [Created] (CXF-4848) WebClient does not process GenericEntity correctly

Sergey Beryozkin created CXF-4848:
-------------------------------------

             Summary: WebClient does not process GenericEntity correctly
                 Key: CXF-4848
                 URL: https://issues.apache.org/jira/browse/CXF-4848
             Project: CXF
          Issue Type: Bug
            Reporter: Sergey Beryozkin
            Assignee: Sergey Beryozkin
             Fix For: 2.8.0, 2.7.4, 2.6.7, 2.5.10


GenericEntity is JAX-RS 1.0 class which can be used to write explicit collection or other generic class instances, example:

{code:java} 
GenericEntity<List<Book>> genericEntity = 
            new GenericEntity<List<Book>>(books) {
            };
{code}
or
{code:java}

class Representation<T> {
 private T data;
 public Representation(T data) {
     this.data = data;
 }
}

Representation<Book> rep = new Representation<Book>(new Book());

GenericEntity<Representation<Book>> genericEntity2 = 
   new GenericEntity<Representation<Book>>(rep, Book.class);

{code}

This is supported on the server, when writing responses, but not with WebClient

--
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