Open venusdrogon opened 2 hours ago
private static GuangdianHttpFullInfo pushData(String logKey,String requestJsonString){
HttpFullInfo httpFullInfo = postAction(requestJsonString);
//如果有异常
if (null != httpFullInfo.getUncheckedHttpException()){
return toGuangdianHttpFullInfo(httpFullInfo);
}
//---------------------------------------------------------------
HttpResponse httpResponse = httpFullInfo.getHttpResponse();
log.info(
"logKey:[{}] requestJsonString:[{}] httpResponse:[{}]",
logKey,
JsonUtil.format(requestJsonString),
JsonUtil.format(httpResponse));
//---------------------------------------------------------------
GuangdianHttpFullInfo guangdianHttpFullInfo = toGuangdianHttpFullInfo(httpFullInfo);
guangdianHttpFullInfo.setGuangdianResponse(responseToBean(logKey, httpResponse.getResultString()));
return guangdianHttpFullInfo;
}
com.feilong.net.http.HttpClientUtil.getHttpFullInfo(HttpRequest, ConnectionConfig) 要支持自定义返回值类型转换