src/main/java/edu/kit/informatik/pcc/webinterface/serverconnection/ServerProxy.java
/**
     * This method calls the Server to authenticate the given account.
     *
     * @param a Account
     * @return Answer from the Server.
     */
This method calls the Server to authenticate the given account.
@param a Account
@return Answer from the Server.
This method calls the Server to authenticate the given account . @param a Account @return Answer from the Server .
public static String authenticateUser(Account a) {
        String json = a.getAsJson();
        Form f = new Form();
        f.param(ACCOUNT, json);
        Response response = post(f, "authenticate");
        return (response == null) ? FAILURE : response.readEntity(String.class);
    }
public static String authenticateUser ( Account a ) { String json = a . getAsJson ( ) ; Form f = new Form ( ) ; f . param ( ACCOUNT , json ) ; Response response = post ( f , "authenticate" ) ; return ( response == null ) ? FAILURE : response . readEntity ( String . class ) ; }
This method calls the Server to authenticate the given account.
This method calls the Server to authenticate the given account .