Annotation Type Wrapped
Put this on a method or parameter when you want to marshal or unmarshal a collection or array of JAXB objects
i.e.
@PUT @Consumes("application/xml") public void put(@Wrapped User[] users);
User is a jaxb annotated class. The input should be:
<resteasy:collection xmlns:resteasy="http://jboss.org/resteasy" xmlns:ns2="whatever"> <ns2:user>...</ns2:user> <ns2:user>...</ns2:user> </resteasy:collection>
or @GET @Wrapped public User[] getUsers();
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Optional Element Summary