Subversion Repositories eFlore/Applications.del

Rev

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

Rev 501 Rev 521
Line 9... Line 9...
9
public class ObservationServiceConcret implements ObservationService {
9
public class ObservationServiceConcret implements ObservationService {
Line 10... Line 10...
10
 
10
 
Line 11... Line 11...
11
	private String serverUrl = "/del/jrest/";
11
	private String serverUrl = "/del/jrest/";
12
 
12
 
13
	@Override
13
	@Override
14
	public ObservationServiceResultat getObservations(InformationsRecherche infos, int debut, int fin, ObservationsCallback callback) {
14
	public void getObservations(InformationsRecherche infos, int debut, int fin, ObservationsCallback callback) {
15
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, serverUrl + "Observations" + assemblerChaineRequete(infos, debut, fin));
15
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, serverUrl + "Observations" + assemblerChaineRequete(infos, debut, fin));
16
		try {
16
		try {
17
			rb.sendRequest(null, callback);
17
			rb.sendRequest(null, callback);
18
		} catch (Exception e) {
18
		} catch (Exception e) {
19
			// TODO: handle exception
-
 
20
		}
19
			// TODO: handle exception
Line 21... Line 20...
21
		return null;
20
		}
Line 22... Line 21...
22
	}
21
	}