[Resteasy-users] Convert a list of query parameters into an Object

2012-05-02 Thread Olivier Brand
Hi, I am using a 3rd party API that returns a list of query parameters Is there a way in RestEasy to convert such a list (in a MessageBodyReader) into a POJO with, let's say @Form annotations? Thanks -- *Olivier * -- Li

Re: [Resteasy-users] Convert a list of query parameters into an Object

2012-05-02 Thread Bill Burke
MessageBodyReader is for reading Http message bodies. Also, I"m not exactly sure what you mean/want anyways. On 5/2/12 6:35 PM, Olivier Brand wrote: > Hi, > > I am using a 3rd party API that returns a list of query parameters > Is there a way in RestEasy to convert such a list (in a > MessageBod

Re: [Resteasy-users] Convert a list of query parameters into an Object

2012-05-02 Thread Olivier Brand
Yes, maybe I was not clear in my question. Basically I am using a third party API that returns as body a list of query params: param1=www¶m2=ddd I have just finished implementing a custom message body reader that takes this string and convert it back to a Java Bean. No need further help. Olivier

Re: [Resteasy-users] Convert a list of query parameters into an Object

2012-05-02 Thread Bill Burke
Well, isn't that the application/x-www-form-urlencoded format? On 5/2/12 8:45 PM, Olivier Brand wrote: > Yes, maybe I was not clear in my question. Basically I am using a third > party API that returns as body a list of query params: param1=www¶m2=ddd > > I have just finished implementing a custom

Re: [Resteasy-users] Convert a list of query parameters into an Object

2012-05-02 Thread Olivier Brand
Here is the detail of what I am doing and getting: I am using the RestEasy client framework, accessing it via a service interface The methods are POST. The 3rd party "REST" service returns a list a query strings BUT the type is marked as text/html;utf-8 When running without my custom reader, the