diff --git a/WasteInformationServer.iml b/WasteInformationServer.iml index 80d3376..9990ff9 100644 --- a/WasteInformationServer.iml +++ b/WasteInformationServer.iml @@ -1,18 +1,21 @@ - - - + + + + - + + + + - - - - + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d4b4c82 --- /dev/null +++ b/pom.xml @@ -0,0 +1,33 @@ + + + 4.0.0 + + + 13 + + + + wasteinformationserver + Waste Information Server + 1.0-BETA + + + + + + org.eclipse.paho + org.eclipse.paho.client.mqttv3 + 1.2.2 + + + + + mysql + mysql-connector-java + 8.0.18 + + + + \ No newline at end of file diff --git a/src/com/wasteinformationserver/Date.java b/src/main/java/com/wasteinformationserver/Date.java similarity index 100% rename from src/com/wasteinformationserver/Date.java rename to src/main/java/com/wasteinformationserver/Date.java diff --git a/src/com/wasteinformationserver/basicutils/Log.java b/src/main/java/com/wasteinformationserver/basicutils/Log.java similarity index 100% rename from src/com/wasteinformationserver/basicutils/Log.java rename to src/main/java/com/wasteinformationserver/basicutils/Log.java diff --git a/src/com/wasteinformationserver/db/Database.java b/src/main/java/com/wasteinformationserver/db/Database.java similarity index 100% rename from src/com/wasteinformationserver/db/Database.java rename to src/main/java/com/wasteinformationserver/db/Database.java diff --git a/src/com/wasteinformationserver/db/JDCB.java b/src/main/java/com/wasteinformationserver/db/JDCB.java similarity index 100% rename from src/com/wasteinformationserver/db/JDCB.java rename to src/main/java/com/wasteinformationserver/db/JDCB.java diff --git a/src/com/wasteinformationserver/db/MySQLConnector.java b/src/main/java/com/wasteinformationserver/db/MySQLConnector.java similarity index 100% rename from src/com/wasteinformationserver/db/MySQLConnector.java rename to src/main/java/com/wasteinformationserver/db/MySQLConnector.java diff --git a/src/com/wasteinformationserver/db/PostgreSQLConnector.java b/src/main/java/com/wasteinformationserver/db/PostgreSQLConnector.java similarity index 100% rename from src/com/wasteinformationserver/db/PostgreSQLConnector.java rename to src/main/java/com/wasteinformationserver/db/PostgreSQLConnector.java diff --git a/src/com/wasteinformationserver/main.java b/src/main/java/com/wasteinformationserver/main.java similarity index 100% rename from src/com/wasteinformationserver/main.java rename to src/main/java/com/wasteinformationserver/main.java diff --git a/src/com/wasteinformationserver/mqtt/Database.java b/src/main/java/com/wasteinformationserver/mqtt/Database.java similarity index 100% rename from src/com/wasteinformationserver/mqtt/Database.java rename to src/main/java/com/wasteinformationserver/mqtt/Database.java diff --git a/src/com/wasteinformationserver/mqtt/mqtt.java b/src/main/java/com/wasteinformationserver/mqtt/mqtt.java similarity index 100% rename from src/com/wasteinformationserver/mqtt/mqtt.java rename to src/main/java/com/wasteinformationserver/mqtt/mqtt.java diff --git a/src/com/wasteinformationserver/mqtt/mqttreceiver.java b/src/main/java/com/wasteinformationserver/mqtt/mqttreceiver.java similarity index 100% rename from src/com/wasteinformationserver/mqtt/mqttreceiver.java rename to src/main/java/com/wasteinformationserver/mqtt/mqttreceiver.java diff --git a/src/com/wasteinformationserver/mqtt/mqtttransmitter.java b/src/main/java/com/wasteinformationserver/mqtt/mqtttransmitter.java similarity index 100% rename from src/com/wasteinformationserver/mqtt/mqtttransmitter.java rename to src/main/java/com/wasteinformationserver/mqtt/mqtttransmitter.java diff --git a/src/com/wasteinformationserver/website/HttpTools.java b/src/main/java/com/wasteinformationserver/website/HttpTools.java similarity index 100% rename from src/com/wasteinformationserver/website/HttpTools.java rename to src/main/java/com/wasteinformationserver/website/HttpTools.java diff --git a/src/com/wasteinformationserver/website/MainPage.java b/src/main/java/com/wasteinformationserver/website/MainPage.java similarity index 100% rename from src/com/wasteinformationserver/website/MainPage.java rename to src/main/java/com/wasteinformationserver/website/MainPage.java diff --git a/src/com/wasteinformationserver/website/Webserver.java b/src/main/java/com/wasteinformationserver/website/Webserver.java similarity index 100% rename from src/com/wasteinformationserver/website/Webserver.java rename to src/main/java/com/wasteinformationserver/website/Webserver.java diff --git a/src/com/wasteinformationserver/website/basicrequest/GetRequest.java b/src/main/java/com/wasteinformationserver/website/basicrequest/GetRequest.java similarity index 100% rename from src/com/wasteinformationserver/website/basicrequest/GetRequest.java rename to src/main/java/com/wasteinformationserver/website/basicrequest/GetRequest.java diff --git a/src/com/wasteinformationserver/website/basicrequest/PostRequest.java b/src/main/java/com/wasteinformationserver/website/basicrequest/PostRequest.java similarity index 100% rename from src/com/wasteinformationserver/website/basicrequest/PostRequest.java rename to src/main/java/com/wasteinformationserver/website/basicrequest/PostRequest.java diff --git a/src/com/wasteinformationserver/website/datarequests/DataRequest.java b/src/main/java/com/wasteinformationserver/website/datarequests/DataRequest.java similarity index 98% rename from src/com/wasteinformationserver/website/datarequests/DataRequest.java rename to src/main/java/com/wasteinformationserver/website/datarequests/DataRequest.java index ebff8b8..2a4fbf1 100644 --- a/src/com/wasteinformationserver/website/datarequests/DataRequest.java +++ b/src/main/java/com/wasteinformationserver/website/datarequests/DataRequest.java @@ -1,6 +1,5 @@ package com.wasteinformationserver.website.datarequests; -import com.google.gson.Gson; import com.wasteinformationserver.basicutils.Log; import com.wasteinformationserver.db.JDCB; import com.wasteinformationserver.website.basicrequest.PostRequest; @@ -68,7 +67,6 @@ public class DataRequest extends PostRequest { case "getAllCities": // TODO: 15.11.19 database call to get all data and store it as json. - Gson gson = new Gson(); StringBuilder builder = new StringBuilder(); diff --git a/src/com/wasteinformationserver/website/datarequests/RegisterRequest.java b/src/main/java/com/wasteinformationserver/website/datarequests/RegisterRequest.java similarity index 100% rename from src/com/wasteinformationserver/website/datarequests/RegisterRequest.java rename to src/main/java/com/wasteinformationserver/website/datarequests/RegisterRequest.java diff --git a/src/com/wasteinformationserver/website/datarequests/login/CheckLoginState.java b/src/main/java/com/wasteinformationserver/website/datarequests/login/CheckLoginState.java similarity index 100% rename from src/com/wasteinformationserver/website/datarequests/login/CheckLoginState.java rename to src/main/java/com/wasteinformationserver/website/datarequests/login/CheckLoginState.java diff --git a/src/com/wasteinformationserver/website/datarequests/login/LoginRequest.java b/src/main/java/com/wasteinformationserver/website/datarequests/login/LoginRequest.java similarity index 100% rename from src/com/wasteinformationserver/website/datarequests/login/LoginRequest.java rename to src/main/java/com/wasteinformationserver/website/datarequests/login/LoginRequest.java diff --git a/src/com/wasteinformationserver/website/datarequests/login/LoginState.java b/src/main/java/com/wasteinformationserver/website/datarequests/login/LoginState.java similarity index 100% rename from src/com/wasteinformationserver/website/datarequests/login/LoginState.java rename to src/main/java/com/wasteinformationserver/website/datarequests/login/LoginState.java