Subversion Repositories eFlore/Applications.coel

Rev

Rev 748 | Rev 754 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 748 Rev 752
Line 26... Line 26...
26
	public static JsonRestRequestBuilder construireRequetePost(String nomService)	{
26
	public static JsonRestRequestBuilder construireRequetePost(String nomService)	{
27
		return construireRequete(nomService, null, null, "POST");
27
		return construireRequete(nomService, null, null, "POST");
28
	}
28
	}
Line 29... Line 29...
29
	
29
	
30
	public static JsonRestRequestBuilder construireRequete(String nomService, String parametre)	{
30
	public static JsonRestRequestBuilder construireRequete(String nomService, String parametre)	{
31
		String[] parametres = {parametre};		
31
		String[] parametres = {parametre};
32
		return construireRequete(nomService, parametres);
32
		return construireRequete(nomService, parametres, null, "GET");
Line 33... Line 33...
33
	}
33
	}
34
	
34
	
35
	public static JsonRestRequestBuilder construireRequete(String nomService, String[] parametres)	{
35
	public static JsonRestRequestBuilder construireRequetePost(String nomService, String[] parametres)	{
Line 36... Line 36...
36
		return construireRequete(nomService, parametres, "GET");
36
		return construireRequete(nomService, parametres, null, "POST");
37
	}
37
	}
38
	
38
	
Line 39... Line 39...
39
	public static JsonRestRequestBuilder construireRequete(String nomService, String[] parametres, String typeRequete)	{
39
	public static JsonRestRequestBuilder construireRequete(String nomService, String[] parametres)	{
40
		return construireRequete(nomService, parametres, null, typeRequete);
40
		return construireRequete(nomService, parametres, null, "GET");
41
	}
41
	}
Line 42... Line -...
42
	
-
 
43
	public static JsonRestRequestBuilder construireRequete(String nomService, HashMap<String, String> restrictions)	{
-
 
44
		return construireRequete(nomService, restrictions, "GET");
-
 
45
	}
-
 
46
 
42
	
47
	public static JsonRestRequestBuilder construireRequete(String nomService, HashMap<String, String> restrictions, String typeRequete)	{
43
	public static JsonRestRequestBuilder construireRequete(String nomService, HashMap<String, String> restrictions)	{
48
		return construireRequete( nomService, null, restrictions, typeRequete);
44
		return construireRequete(nomService, null, restrictions, "GET");
Line 49... Line 45...
49
	}
45
	}