Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1293 Rev 1918
Line 3... Line 3...
3
import org.tela_botanica.client.interfaces.Rafraichissable;
3
import org.tela_botanica.client.interfaces.Rafraichissable;
4
import org.tela_botanica.client.modeles.objets.Configuration;
4
import org.tela_botanica.client.modeles.objets.Configuration;
5
import org.tela_botanica.client.observation.ObservationModele;
5
import org.tela_botanica.client.observation.ObservationModele;
Line 6... Line 6...
6
 
6
 
7
import com.google.gwt.http.client.Request;
7
import com.google.gwt.http.client.Request;
8
import com.google.gwt.http.client.RequestBuilder;
8
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
9
import com.google.gwt.http.client.RequestCallback;
9
import com.google.gwt.http.client.RequestCallback;
10
import com.google.gwt.http.client.RequestException;
10
import com.google.gwt.http.client.RequestException;
11
import com.google.gwt.http.client.Response;
11
import com.google.gwt.http.client.Response;
12
import com.google.gwt.json.client.JSONArray;
12
import com.google.gwt.json.client.JSONArray;
Line 22... Line 22...
22
		oModele = observationModele ;
22
		oModele = observationModele ;
23
	}
23
	}
Line 24... Line 24...
24
 
24
 
Line 25... Line 25...
25
	public void obtenirNomRetenu(final Rafraichissable r, final String anum) {
25
	public void obtenirNomRetenu(final Rafraichissable r, final String anum) {
26
		
26
		
27
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,
27
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET,
Line 28... Line 28...
28
				Configuration.getServiceBaseUrl()
28
				Configuration.getServiceBaseUrl()
29
				+ "/name/"+anum);
29
				+ "/name/"+anum);