updated artifacts and readme

This commit is contained in:
lukas-heiligenbrunner 2019-12-03 09:02:30 +01:00
parent b4aa47d61e
commit 4563b8d407
9 changed files with 22 additions and 28 deletions

View File

@ -1,8 +1,14 @@
<component name="ArtifactManager"> <component name="ArtifactManager">
<artifact type="jar" name="WasteInformationServer:jar"> <artifact type="jar" build-on-make="true" name="WasteInformationServer:jar">
<output-path>$PROJECT_DIR$/out/artifacts/WasteInformationServer_jar</output-path> <output-path>$PROJECT_DIR$/out/artifacts/WasteInformationServer_jar</output-path>
<root id="archive" name="WasteInformationServer.jar"> <root id="archive" name="WasteInformationServer.jar">
<element id="directory" name="META-INF">
<element id="file-copy" path="$PROJECT_DIR$/src/main/META-INF/MANIFEST.MF" />
</element>
<element id="module-output" name="WasteInformationServer" /> <element id="module-output" name="WasteInformationServer" />
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.18/mysql-connector-java-8.0.18.jar" path-in-jar="/" />
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/eclipse/paho/org.eclipse.paho.client.mqttv3/1.2.2/org.eclipse.paho.client.mqttv3-1.2.2.jar" path-in-jar="/" />
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1.jar" path-in-jar="/" />
</root> </root>
</artifact> </artifact>
</component> </component>

View File

@ -1,11 +0,0 @@
<component name="ArtifactManager">
<artifact type="jar" name="WasteinformationServer">
<output-path>$PROJECT_DIR$/out/artifacts/WasteinformationServer</output-path>
<root id="archive" name="WasteinformationServer.jar">
<element id="module-output" name="WasteInformationServer" />
<element id="extracted-dir" path="$PROJECT_DIR$/lib/mysql-connector-java-5.1.44-bin.jar" path-in-jar="/" />
<element id="extracted-dir" path="$PROJECT_DIR$/lib/org.eclipse.paho.client.mqttv3-1.2.1.jar" path-in-jar="/" />
<element id="dir-copy" path="$PROJECT_DIR$/resources" />
</root>
</artifact>
</component>

View File

@ -1,6 +0,0 @@
<component name="ArtifactManager">
<artifact type="jar" name="unnamed">
<output-path>$PROJECT_DIR$/out/artifacts/unnamed</output-path>
<root id="archive" name="unnamed.jar" />
</artifact>
</component>

View File

@ -1 +1,5 @@
# WasteInformationServer # WasteInformationServer
## Dependencies:
* org.eclipse.paho.client.mqttv3
* mysql-connector-java

View File

@ -53,7 +53,6 @@ public class JDCB {
conn = db.getConnection(); conn = db.getConnection();
loggedin = true; loggedin = true;
} catch (SQLException e) { } catch (SQLException e) {
Log.error("no connection to Database!");
throw new IOException("No connection to database"); throw new IOException("No connection to database");
} }

View File

@ -43,6 +43,11 @@ public abstract class PostRequest implements HttpHandler {
} }
} }
/**
*
* @param params received get params from com.wasteinformationserver.website
* @return json reply to com.wasteinformationserver.website
*/
public abstract String request(HashMap<String, String> params); public abstract String request(HashMap<String, String> params);
} }

View File

@ -65,9 +65,6 @@ public class DataRequest extends PostRequest {
Log.debug(result); Log.debug(result);
break; break;
case "getAllCities": case "getAllCities":
// TODO: 15.11.19 database call to get all data and store it as json.
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
ResultSet sett = jdcb.executeQuery("select * from cities"); ResultSet sett = jdcb.executeQuery("select * from cities");

View File

@ -9,12 +9,12 @@ public class LoginState {
return mythis; return mythis;
} }
String username; private String username;
String firstname; private String firstname;
String lastname; private String lastname;
String email; private String email;
boolean loggedin = true; //todo set back!!! boolean loggedin = false;
public void logIn(){ public void logIn(){
loggedin=true; loggedin=true;