// Wait for the body for jersey to handle form/json/xml params
if (shouldReadData(vertxRequest)) {
if (logger.isDebugEnabled()) {
logger.debug("DefaultJerseyHandler - handle request and read body: " + vertxRequest.method() + " " + vertxRequest.uri());
}
final Buffer body = Buffer.buffer();
vertxRequest.handler(buffer -> {
body.appendBuffer(buffer);
if (body.length() > maxBodySize) {
throw new RuntimeException("The input stream has exceeded the max allowed body size "
+ maxBodySize + ".");
}
});
vertxRequest.endHandler(aVoid -> {
InputStream inputStream = new ByteArrayInputStream(body.getBytes());
DefaultJerseyHandler.this.handle(vertxRequest, inputStream);
});
} else {
if (logger.isDebugEnabled()) {