-
Bug
-
Resolution: Done
-
Major
-
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.