Skip to content
Snippets Groups Projects
Commit a69b9bcc authored by Rodríguez Ortega, Alejandro's avatar Rodríguez Ortega, Alejandro
Browse files

Added some traces for testing purposes

parent c5b095f2
Branches
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ public class DataService {
String filter = encode("{\""+property+"\":\""+value+"\"}");
//https://bilbao.urbanite.esilab.org/data/getTData/mapLayer/bilbao?filters=%7B%22alternateName%22%3A%20%22test.geojson%22%7D
System.out.println("URL:"+URL+"/data/getTData/"+model+"/"+city+"?filters="+filter+"&sort=ASC");
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(URL+"/data/getTData/"+model+"/"+city+"?filters="+filter+"&sort=ASC"))
.GET()
......@@ -41,8 +42,7 @@ public class DataService {
public JSONObject updateObjects(JSONObject name, String model, String city, String id) throws JSONException, URISyntaxException, IOException, InterruptedException {
String URL = Configuration.getExporterUrl();
//http://localhost:8080/data/updateTData/vehicle/bilbao/vehicle%3AWasteManagement%3A1
System.out.println("URL:"+URL+"/data/updateTData/"+model+"/"+city+"/"+id);
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(URL+"/data/updateTData/"+model+"/"+city+"/"+id))
.PUT(HttpRequest.BodyPublishers.ofString(name.toString()))
......@@ -58,8 +58,7 @@ public class DataService {
public JSONObject deleteObject(String model, String city, String id) throws JSONException, URISyntaxException, IOException, InterruptedException {
String URL = Configuration.getExporterUrl();
//http://localhost:8080/data/updateTData/vehicle/bilbao/vehicle%3AWasteManagement%3A1
System.out.println("URL:"+URL+"/data/deleteTData/"+model+"/"+city+"/"+id);
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(URL+"/data/deleteTData/"+model+"/"+city+"/"+id))
.PUT(HttpRequest.BodyPublishers.noBody())
......@@ -76,7 +75,7 @@ public class DataService {
public JSONObject getDistinctObject(String model, String city, String field) throws JSONException, URISyntaxException, IOException, InterruptedException {
String URL = Configuration.getExporterUrl();
//http://localhost:8080/data/updateTData/vehicle/bilbao/vehicle%3AWasteManagement%3A1
System.out.println("URL:"+URL+"/data/getDistinct/"+model+"/"+city+"?field="+field);
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(URL+"/data/getDistinct/"+model+"/"+city+"?field="+field))
.GET()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment