Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4848

WebClient does not process GenericEntity correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.4, 2.6.7, 2.5.10, 3.0.0-milestone1
    • None
    • None
    • Unknown

    Description

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

       
      GenericEntity<List<Book>> genericEntity = 
                  new GenericEntity<List<Book>>(books) {
                  };
      

      or

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

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

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: