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

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 09 Jun 2008 11:53:21 -0400

On Jun 9, 2008, at 11:38 AM, Stephan Koops wrote:
>>> 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 don't know. The contents of multipart/form-data might not be
suitable for putting in a String. We don't currently require support
for entities of type MultivaluedMap<String,String> and that media type.

>> 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?


Marc Hadley <marc.hadley at>
CTO Office, Sun Microsystems.