Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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