updated artifacts and readme
This commit is contained in:
parent
b4aa47d61e
commit
4563b8d407
@ -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>
|
@ -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>
|
|
@ -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>
|
|
@ -1 +1,5 @@
|
|||||||
# WasteInformationServer
|
# WasteInformationServer
|
||||||
|
|
||||||
|
## Dependencies:
|
||||||
|
* org.eclipse.paho.client.mqttv3
|
||||||
|
* mysql-connector-java
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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");
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user