How to get full REST request body using Jersey?

Turns out you don’t have to do much at all.

See below – the parameter x will contain the full HTTP body (which is XML in our case).

@POST
public Response go(String x) throws IOException {
    ...
}

Leave a Comment