Subversion Repositories eFlore/Applications.del

Rev

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

Rev 530 Rev 768
Line 20... Line 20...
20
		this.baseUrl = config.getServiceBaseUrl();
20
		this.baseUrl = config.getServiceBaseUrl();
21
	}
21
	}
Line 22... Line 22...
22
	
22
	
23
	@Override
23
	@Override
24
	public void getObservations(InformationsRecherche infos, int debut, int fin, ObservationsCallback callback) {
24
	public void getObservations(InformationsRecherche infos, int debut, int fin, ObservationsCallback callback) {
25
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, baseUrl + "Observations" + assemblerChaineRequete(infos, debut, fin));
25
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, baseUrl + "observations" + assemblerChaineRequete(infos, debut, fin));
26
		try {
26
		try {
27
			rb.sendRequest(null, callback);
27
			rb.sendRequest(null, callback);
28
		} catch (Exception e) {
28
		} catch (Exception e) {
29
			// TODO: handle exception
29
			// TODO: handle exception
30
		}
30
		}
Line 31... Line 31...
31
	}
31
	}
Line 32... Line 32...
32
 
32
 
33
	private String assemblerChaineRequete(InformationsRecherche infos, int debut, int fin) {
33
	private String assemblerChaineRequete(InformationsRecherche infos, int debut, int fin) {
Line 34... Line 34...
34
 
34
 
35
		String chaineRequete = "?debut=" + debut + "&limite=" + (fin - debut);
35
		String chaineRequete = "?navigation.depart=" + debut + "&navigation.limite=" + (fin - debut);
36
		chaineRequete+= infos.versChaineRequete();
36
		chaineRequete+= infos.versChaineRequete();