ジャージーで単一のオブジェクトを消費するには、次のようなメソッドがあります
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public Response postPerson(MultivaluedMap<String, String> personParams){
ResponseBuilder response = Response.ok();
return response.build();
}
its working well.
私の疑問は、ジャージーのオブジェクトのリストをどのように消費できるかです
some thing like this
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public Response postPerson(List<Person> person){
ResponseBuilder response = Response.ok();
return response.build();
}
グーグルで調べましたが、実際の例は見つかりませんでした。