You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2010/11/10 19:33:46 UTC

JAX-RS form params as map

Can I set up a JAX-RS function to accept any arbitrary form parameters
delivered as a map, or some other data structure?

Re: JAX-RS form params as map

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Benson

You should be able to use MultivaluedMap<?, ?>, ex

@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public void handleForm(MultivaluedMap map) {}

cheers, Sergey

On Wed, Nov 10, 2010 at 6:33 PM, Benson Margulies <bi...@gmail.com>wrote:

> Can I set up a JAX-RS function to accept any arbitrary form parameters
> delivered as a map, or some other data structure?
>