Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client.http;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
public class JsonRestRequestBuilder extends RequestBuilder {
public JsonRestRequestBuilder(Method httpMethod, String url) {
super(httpMethod, url);
// TODO Auto-generated constructor stub
}
public Request envoyerRequete(String donneesRequete, RequestCallback retour) {
Request requeteSortie = null;
try {
requeteSortie = sendRequest(donneesRequete, retour);
} catch (RequestException e) {
GWT.log("Une exception est survenue lors de l'envoie de la requĂȘte JRest", e);
}
return requeteSortie;
}
}