Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1516 → Rev 1517

/trunk/src/org/tela_botanica/del/client/services/rest/async/PHPCallback.java
1,8 → 1,11
package org.tela_botanica.del.client.services.rest.async;
 
import org.tela_botanica.del.client.utils.StringUtils;
 
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONException;
import com.google.gwt.user.client.Window;
 
/**
51,7 → 54,12
}
 
if (statusCode == codeAttendu) {
surRetour(parserJSON(response.getText()));
try {
T reponseParsee = parserJSON(response.getText());
surRetour(reponseParsee);
} catch (JSONException e) {
StringUtils.logChaine("Une erreur est survenue, le serveur a répondu : "+response.getText());
}
} else {
surErreur("Erreur " + statusCode + ": " + response.getText());
}