Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1732 Rev 1906
Line 9... Line 9...
9
import com.google.gwt.http.client.RequestException;
9
import com.google.gwt.http.client.RequestException;
10
import com.google.gwt.http.client.URL;
10
import com.google.gwt.http.client.URL;
Line 11... Line 11...
11
 
11
 
Line -... Line 12...
-
 
12
public class JsonRestRequestBuilder extends RequestBuilderWithCredentials {
12
public class JsonRestRequestBuilder extends RequestBuilderWithCredentials {
13
 
13
 
14
	// avec header "Authorization"
14
	public JsonRestRequestBuilder(Method httpMethod, String url) {
15
	public JsonRestRequestBuilder(Method httpMethod, String url) {
-
 
16
		super(httpMethod, url);
-
 
17
	}
-
 
18
 
-
 
19
	// ajoute le header "Authorization" si authorizationHeader vaut true
-
 
20
	public JsonRestRequestBuilder(Method httpMethod, String url, boolean authorizationHeader) {
Line 15... Line 21...
15
		super(httpMethod, url);
21
		super(httpMethod, url, authorizationHeader);
16
	}
22
	}
17
	
23
	
18
	public Request envoyerRequete(String donneesRequete, RequestCallback retour) {
24
	public Request envoyerRequete(String donneesRequete, RequestCallback retour) {