This commit is contained in:
2025-02-11 10:13:38 +01:00
parent 281f6e01ee
commit 01dfea2917

View File

@@ -138,19 +138,17 @@ public class UtilityController {
StringBuilder responseString = new StringBuilder(); StringBuilder responseString = new StringBuilder();
final int status = HttpRestWrapper.callGenericGet(url, null, null, responseString, null); final int status = HttpRestWrapper.callGenericGet(url, null, null, responseString, null);
/* ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
JsonNode node = mapper.readTree(responseString.toString()); JsonNode node = mapper.readTree(responseString.toString());
boolean success = node.get("success").asBoolean();*/ boolean success = node.get("success").asBoolean();
boolean success = true;
return ServiceRestResponse.createPositiveResponse(success); return ServiceRestResponse.createPositiveResponse(success);
} else { } else {
throw new Exception("La proprieta' \"url\" non è presente nel json"); throw new Exception("La proprieta' \"url\" non è presente nel json");
} }
} }
@RequestMapping(value = EmsRestConstants.PATH_MIGRATE_GEOLOCATION_FOR_RLAVR, method = RequestMethod.GET) @RequestMapping(value = EmsRestConstants.PATH_MIGRATE_GEOLOCATION_FOR_RLAVR, method = RequestMethod.GET)
public @ResponseBody public @ResponseBody
ServiceRestResponse setGeolocationFromCoordinate(HttpServletRequest request, @RequestParam(CommonConstants.PROFILE_DB) String configuration) { ServiceRestResponse setGeolocationFromCoordinate(HttpServletRequest request, @RequestParam(CommonConstants.PROFILE_DB) String configuration) {