use of com.dtflys.forest.backend.httpclient.logging.HttpclientLogBodyMessage in project forest by dromara.
the class AbstractHttpclientRequestSender method setLogBody.
protected <T extends HttpRequestBase> void setLogBody(RequestLogMessage logMessage, T httpReq) {
HttpEntityEnclosingRequestBase entityEnclosingRequest = (HttpEntityEnclosingRequestBase) httpReq;
HttpEntity entity = entityEnclosingRequest.getEntity();
if (entity == null) {
return;
}
LogBodyMessage logBodyMessage = new HttpclientLogBodyMessage(entity);
logMessage.setBody(logBodyMessage);
}
Aggregations