updated artifacts and readme

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

View File

@ -53,7 +53,6 @@ public class JDCB {
conn = db.getConnection();
loggedin = true;
} catch (SQLException e) {
Log.error("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);
}

View File

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

View File

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