vernedeng commented on code in PR #9471:
URL: https://github.com/apache/inlong/pull/9471#discussion_r1426214534
##########
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/util/HttpUtils.java:
##########
@@ -95,6 +95,36 @@ public static <T> T request(RestTemplate restTemplate,
String url, HttpMethod me
}
}
+ /**
+ * Send an HTTP request by the given rest template.
+ */
+ public static <T> T request(RestTemplate restTemplate, String[] urls,
HttpMethod method,
+ String param, HttpHeaders header, Class<T> cls) throws Exception {
+ ResponseEntity<String> exchange;
+ for (int i = 0; i < urls.length; i++) {
Review Comment:
NPE
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]