I am using REST-Jersey in my project. All the POST data is send in JSON format and unmarshalled at server-side into respective beans. Something lik
You can get the POST Body from the Requests Input Stream. Try something like this:
@Override
public ContainerRequest filter(ContainerRequest req) {
try{
StringWriter writer = new StringWriter();
IOUtils.copy(req.getEntityInputStream(), writer, "UTF-8");
//This is your POST Body as String
String body = writer.toString();
}
catch (IOException e) {}
return req; }