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