71,12 → 71,12 |
if (response.getText().length() != 0 && response.getText() != null) { |
final JSONValue responseValue = JSONParser.parse(response.getText()); |
|
// Si la requête est un succès, reception d'un tableau |
if (responseValue.isArray() != null) { |
Information info = new Information("ajout_structure", responseValue.isArray()); |
// Si la requête est un succès, reception d'une chaine |
if (responseValue.isString() != null) { |
Information info = new Information("ajout_structure", responseValue.isString().stringValue()); |
r.rafraichir(info); |
} else { |
GWT.log(url+"\n\tLa réponse n'est pas un tableau JSON.", null); |
GWT.log(url+"\n\tLa réponse n'est pas une chaine JSON.", null); |
} |
} else { |
GWT.log(url, null); |