Subversion Repositories eFlore/Applications.del

Rev

Rev 1953 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1953 Rev 2077
Line 27... Line 27...
27
	}
27
	}
Line 28... Line 28...
28
 
28
 
Line 29... Line 29...
29
	protected ModeRequete mode;
29
	protected ModeRequete mode;
-
 
30
 
30
 
31
	public PHPCallback() {
Line 31... Line 32...
31
	public PHPCallback() {
32
		this.mode = ModeRequete.LECTURE;
32
	}
33
	}
33
 
34
 
Line 54... Line 55...
54
			break;
55
			break;
55
		default:
56
		default:
56
			codeAttendu = Arrays.asList(500);
57
			codeAttendu = Arrays.asList(500);
57
			break;
58
			break;
58
		}
59
		}
59
		GWT.log("Codes attendus:"+codeAttendu.toString());
60
		//GWT.log("Codes attendus:"+codeAttendu.toString());
60
		GWT.log("Code:"+statusCode);
61
		//GWT.log("Code:"+statusCode);
61
		if (codeAttendu.contains(statusCode)) {
62
		if (codeAttendu != null && codeAttendu.contains(statusCode)) {
62
			GWT.log("Code: OK");
63
			//GWT.log("Code: OK");
63
			try {
64
			try {
64
				T reponseParsee = parserJSON(response.getText());
65
				T reponseParsee = parserJSON(response.getText());
65
				surRetour(reponseParsee);
66
				surRetour(reponseParsee);
66
			} catch (JSONException e) {
67
			} catch (JSONException e) {
67
				StringUtils.logVersConsole("Une erreur est survenue, le serveur a répondu : "+response.getText());
68
				StringUtils.logVersConsole("Une erreur est survenue, le serveur a répondu : "+response.getText());