Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1317 Rev 1918
Line 4... Line 4...
4
import org.tela_botanica.client.modeles.objets.Configuration;
4
import org.tela_botanica.client.modeles.objets.Configuration;
5
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
5
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
6
import org.tela_botanica.client.util.Util;
6
import org.tela_botanica.client.util.Util;
Line 7... Line 7...
7
 
7
 
8
import com.google.gwt.http.client.Request;
8
import com.google.gwt.http.client.Request;
9
import com.google.gwt.http.client.RequestBuilder;
9
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
10
import com.google.gwt.http.client.RequestCallback;
10
import com.google.gwt.http.client.RequestCallback;
11
import com.google.gwt.http.client.RequestException;
11
import com.google.gwt.http.client.RequestException;
12
import com.google.gwt.http.client.Response;
12
import com.google.gwt.http.client.Response;
13
import com.google.gwt.http.client.URL;
13
import com.google.gwt.http.client.URL;
Line 31... Line 31...
31
			final double lat) {
31
			final double lat) {
Line 32... Line 32...
32
 
32
 
33
		String adresseAppel = Configuration.getServiceBaseUrl() + "/"
33
		String adresseAppel = Configuration.getServiceBaseUrl() + "/"
34
				+ NOM_SERVICE + "/" + URL.encode("" + lat) + "/"
34
				+ NOM_SERVICE + "/" + URL.encode("" + lat) + "/"
35
				+ URL.encode("" + lng) + "/*/*/";
35
				+ URL.encode("" + lng) + "/*/*/";
Line 36... Line 36...
36
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, adresseAppel);
36
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET, adresseAppel);
37
 
37
 
Line 38... Line 38...
38
		try {
38
		try {
Line 106... Line 106...
106
		
106
		
107
		String adresseAppel = Configuration.getServiceBaseUrl() + "/"
107
		String adresseAppel = Configuration.getServiceBaseUrl() + "/"
108
				+ NOM_SERVICE + "/*/*/" + URL.encode(valeurCommune) + "/"
108
				+ NOM_SERVICE + "/*/*/" + URL.encode(valeurCommune) + "/"
109
				+ URL.encode(codePostal) + "/"
109
				+ URL.encode(codePostal) + "/"
110
				+ URL.encode(CODE_PAYS);
110
				+ URL.encode(CODE_PAYS);
Line 111... Line 111...
111
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, adresseAppel);
111
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET, adresseAppel);
112
 
112
 
Line 113... Line 113...
113
		try {
113
		try {