updated artifacts and readme
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user