users@jsr311.java.net

Re: _at_FormParam (was Re: [Resteasy-developers] _at_QueryParam and POST)

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Mon, 09 Jun 2008 17:38:40 +0200

Hi Marc,
>> IMO JAX-RS should support @FormParam.
> Unless anyone shouts loudly I'm going to add this annotation. It will
> have the same targets as @QueryParam and will be usable with the same
> Java types.
Cool. Also the restrictions for the entity types sounds good to me.
Do we want to provide the same support for "multipart/form-data" (the
HTML <form>)?
> I'm also debating whether to add a method:
>
> MultivaluedMap<String, String> Request.getFormParameters()
What should this method do, if the type isn't a form? IllegalStateException?

best regards
   Stephan