Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-206

@Wrapped Response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.RC1
    • 1.0.2.GA
    • None
    • None

    Description

      I find @Wrapped annotation very useful for common cases but I would need to use it when I return an array or collection wrapped in Response object. In other words, it would be nice to be able to pass a collection as an entity of Response and still get it marshalled same way as when returning collection directly without using Response. My usecase:

      @Wrapped
      public Response getList() {

      List<T> list;
      Type type;
      ...
      return Response.ok(new GenericEntity(list, type), mediaType).build();
      }

      I am getting NoMessageBodyWriterFoundFailure in this case.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: