cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: accepting a key-value set in JAX-RS
Date Wed, 26 Jan 2011 13:48:58 GMT
Oh, duh, that's clearly incoherent. Try this version instead:

Forget about urlencoded forms. I want to accept a post of a slug of
JSON, and I want to know to what extent CXF JAX-RS will bind it to
parameters for me versus my parsing it with jackson for myself.


On Wed, Jan 26, 2011 at 8:43 AM, Benson Margulies <bimargulies@gmail.com> wrote:
> Sergey,
>
> I think I get this, but I wanted to check.
>
> Does the following expect a post, with a param named 'params', and
> parse the results as json into a map for me?
>
> @Path("/whatever")
> @POST
> @Consumes("application/json")
> @Produces("application/json")
> public Response whatever(@FormParam(value="params") Map<String,
> String> keysAndValues)
> {
> ....
> }
>
> --benson
>

Mime
View raw message