I am looking Is there any way to get all form parameters programmatic way
instead of @FormParam annotation.
I may not know all Form Parameter key during developing JAXRS REST Service.
We can't use @FormParam in this situation APIk.
I can retrieve all query parameters using @Context. I am looking similar
way to get all form parameters.
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public String post(@Context UriInfo uriinfo) {
* MultivaluedMap<String, String> params =
uriinfo.getQueryParameters();*
}
Thanks,
Ravi Hingarajiya