In our case, we want to get raw POST body and use request.getParameter() at the same time. But if we call request.getParameter(), we would not able to read raw body.
I found a solution for servlet 2.x Http Servlet request lose params from POST body after read it once.
But for servlet 3.x, ServletInputStream API is changed. The ServletInputStream now has abstract isReady(), isFinished() and setReadListener() to deal with non-blocking IO which must be implemented. Any idea to do this in servlet 3.x?
And for tomcat 7, it seems it doesn't call getInputStream when parsing parameter.