Consider following function:
@POST
@Path("/handle_response")
@Produces(MediaType.APPLICATION_JSON)
public ResponseJsonBean handle(@FormParam("first") Integer first, @FormParam("second") Integer second)
{
////// bla bla
}
The above function is called when I make a POST x-www-form-urlencoded request. But the function is not called when I make POST form data request. Why it is not called in the latter case? and how can I make such function which works for latter request.