Package cn.net.pap.task.webclient
Class WebClientUtil
java.lang.Object
cn.net.pap.task.webclient.WebClientUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.web.reactive.function.client.ClientResponseWebClient post body jsonstatic StringpostBodyObjectSimple(String url, Object objectJSON, org.springframework.http.HttpHeaders headers, Integer maxByteCount) simple http post request body
-
Constructor Details
-
WebClientUtil
public WebClientUtil()
-
-
Method Details
-
postBodyObjectSimple
public static String postBodyObjectSimple(String url, Object objectJSON, org.springframework.http.HttpHeaders headers, Integer maxByteCount) simple http post request body- Parameters:
url-objectJSON-headers-maxByteCount- 10*1024*1024代表10MB- Returns:
-
postBody
public static org.springframework.web.reactive.function.client.ClientResponse postBody(String url, String bodyJSON, org.springframework.http.HttpHeaders headers) WebClient post body json- Parameters:
url-bodyJSON-- Returns:
-