Skip to content

Commit

Permalink
add httpAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
wufan1991 committed Sep 14, 2021
1 parent 9313ba5 commit cca973c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ public static HttpAdapterResponse doPost(String url, Map<String, Object> bodyMap
private static HttpAdapterResponse getResponse(HttpRequestBase request) {
CloseableHttpResponse response = null;
try {
logger.info("httpAdapter start!!!");
response = HttpClientPool.getConnection().execute(request,
HttpClientContext.create());
logger.info("httpAdapter:{}",response);
logger.info("httpAdapter:{}",response.getStatusLine().getStatusCode());
HttpEntity entity = response.getEntity();
String result = EntityUtils.toString(entity, Dict.CHARSET_UTF8);
return JsonUtil.json2Object(result, HttpAdapterResponse.class);
Expand Down

0 comments on commit cca973c

Please sign in to comment.