users@jersey.java.net

Re: [Jersey] POST a collection of JAXB objects ?

From: Arul Dhesiaseelan <arul_at_fluxcorp.com>
Date: Sun, 19 Apr 2009 09:28:36 -0600

Hi Felipe,

You could use the GenericType[1] to wrap your collection and post it to your resource.

Please refer the bundled JAXB sample for details [2].

-Arul


[1] https://jersey.dev.java.net/nonav/apidocs/1.0.3/jersey/com/sun/jersey/api/client/GenericType.html
[2] http://download.java.net/maven/2/com/sun/jersey/samples/jaxb/1.0.3/

----- Original Message -----
From: Felipe Gaścho
[mailto:fgaucho_at_gmail.com]
To: users_at_jersey.dev.java.net
Sent: Sun, 19 Apr
2009 02:51:57 -0600
Subject: [Jersey] POST a collection of JAXB objects ?


> how to post a collection of Jaxb annotated classes ? how to deserialize them
> ?
>
> * in soap, I use to create an element to represent the collection of
> the others...
>
> should I use Multipart form data, or how do I deserialize an url
> encoded collection of objects ?
>
> --
>
> Please help to test this application:
> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>