Skip to content
Snippets Groups Projects
Commit 174f3a36 authored by Yannik Potdevin's avatar Yannik Potdevin
Browse files

Fixed connection to virtual server

parent aab6686c
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ public class ItemRequest {
*/
public String[] getAntibiotics(SharedPreferences pref) throws Exception {
return getDatas("http://" + pref.getString("ip", "localhost")
+ ":8080/BabsiWeb" + antibioticUrl);
+ antibioticUrl);
}
/**
......@@ -54,7 +54,7 @@ public class ItemRequest {
*/
public String[] getStations(SharedPreferences pref) throws Exception {
return getDatas("http://" + pref.getString("ip", "localhost")
+ ":8080/BabsiWeb" + stationUrl);
+ stationUrl);
}
/**
......@@ -64,7 +64,7 @@ public class ItemRequest {
*/
public String[] getDiagnoses(SharedPreferences pref) throws Exception {
return getDatas("http://" + pref.getString("ip", "localhost")
+ ":8080/BabsiWeb" + diagnoseUrl);
+ diagnoseUrl);
}
/**
......@@ -74,7 +74,7 @@ public class ItemRequest {
*/
public String[] getInterventions(SharedPreferences pref) throws Exception {
return getDatas("http://" + pref.getString("ip", "localhost")
+ ":8080/BabsiWeb" + interventionUrl);
+ interventionUrl);
}
/**
......@@ -103,7 +103,7 @@ public class ItemRequest {
public User[] getUsers(SharedPreferences pref) throws Exception {
User[] logins = RestUtil.getRest().getForObject(
"http://" + pref.getString("ip", "localhost") + ":8080/BabsiWeb"
"http://" + pref.getString("ip", "localhost")
+ userUrl, User[].class);
return logins;
}
......@@ -123,7 +123,7 @@ public class ItemRequest {
ResponseEntity<Checklist> response;
response = RestUtil.getRest().postForEntity(
"http://" + pref.getString("ip", "localhost")
+ ":8080/BabsiWeb" + checklistUrl, checklists.get(i),
+ checklistUrl, checklists.get(i),
Checklist.class);
HttpStatus status = response.getStatusCode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment