users@jersey.java.net

[Jersey] Re: dynamic formparameters possible ?

From: Brian DiCasa <bdicasa_at_gmail.com>
Date: Tue, 13 Dec 2011 11:42:50 -0800 (PST)

You can do this by using a MultivaluedMap as a parameter. For example, if you
had a method like:

@POST @Path("/my-action")
public Response myAction(MultivaluedMap<String, String> formParams) {
    // You can access the form parameters via
formParams.getFirst("myParameter");
}

--
View this message in context: http://jersey.576304.n2.nabble.com/dynamic-formparameters-possible-tp7090898p7091157.html
Sent from the Jersey mailing list archive at Nabble.com.