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

@Wrapped Response

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: