Mlupdsrv
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user