Your method needs to have a parameter of type MultivaluedMap<String,
String> (no annotations required), like this:
@POST
SomeType someMethod(MultivaluedMap<String, String> formData, ...) {
List<String> paramValues = formData.get("paramName");
...
}
Marc.
On Apr 24, 2008, at 5:55 AM, Leif Gensert wrote:
> This questions seems rather stupid, but I don't know how to get the
> POST-parameters of a request. The GET-query-paramers are easy to get
> by the URIInfo object.
>
> Can anybody help me? Can I get these Parameters as easy as I can get
> the parameters of the uri? (@Context URIInfo .....)
>
> Thanks
> Leif
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.