public static String get(List<String> apis,Object[] args,String encoding,Header[] headers,Integer timeout){
String response = null;
for(String api: apis){
String uri = UriComponentsBuilder.fromHttpUrl(api)
.buildAndExpand(args).toUriString();
response = HttpClientUtils.getDataFromUri(uri,encoding,headers,timeout);
if(objects.equal(response,HTTP_ERROR)){
continue;
}
if(objects.equal(response,HTTP_UNKOWN_HOST_ERROR)){
response = HTTP_ERROR;
continue;
}
if(objects.equal(response,HTTP_SOCKET_TIMEOUT_ERROR)){
response = HTTP_ERROR;
continue;
}
return response;
}
response;
}