Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1018 Rev 1293
Line 10... Line 10...
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;
13
import com.google.gwt.json.client.JSONParser;
13
import com.google.gwt.json.client.JSONParser;
14
import com.google.gwt.json.client.JSONValue;
14
import com.google.gwt.json.client.JSONValue;
15
import com.google.gwt.user.client.Window;
-
 
Line 16... Line 15...
16
 
15
 
17
/**
16
/**
18
 * DAO d'accès à l'arbre de mots clés
17
 * DAO d'accès à l'arbre de mots clés
19
 * 
18
 * 
Line 47... Line 46...
47
				+ "/InventoryKeyWordList/"+mode+"/"+identifiant+"/");
46
				+ "/InventoryKeyWordList/"+mode+"/"+identifiant+"/");
Line 48... Line 47...
48
 
47
 
49
		try {
48
		try {
Line -... Line 49...
-
 
49
			rb.sendRequest(null, new RequestCallback() {
50
			rb.sendRequest(null, new RequestCallback() {
50
 
51
 
51
				@Override
Line 52... Line 52...
52
				public void onError(Request request, Throwable exception) {
52
				public void onError(Request request, Throwable exception) {
Line -... Line 53...
-
 
53
					// TODO Auto-generated method stub
53
					// TODO Auto-generated method stub
54
 
54
 
55
				}
Line 55... Line 56...
55
				}
56
 
56
 
57
				@Override
Line 94... Line 95...
94
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
95
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
95
					+ "/InventoryKeyWordList/");
96
					+ "/InventoryKeyWordList/");
96
			try {
97
			try {
97
				rb.sendRequest(postData, new RequestCallback() {
98
				rb.sendRequest(postData, new RequestCallback() {
Line -... Line 99...
-
 
99
 
98
 
100
					@Override
99
					public void onError(Request request, Throwable exception) {
101
					public void onError(Request request, Throwable exception) {
Line 100... Line 102...
100
						// TODO Auto-generated method stub
102
						// TODO Auto-generated method stub
Line -... Line 103...
-
 
103
 
101
 
104
					}
102
					}
105
 
Line 103... Line 106...
103
 
106
					@Override
104
					public void onResponseReceived(Request request,
107
					public void onResponseReceived(Request request,
Line 143... Line 146...
143
					+ motcle);
146
					+ motcle);
Line 144... Line 147...
144
 
147
 
145
			try {
148
			try {
Line -... Line 149...
-
 
149
				rb.sendRequest(postData, new RequestCallback() {
146
				rb.sendRequest(postData, new RequestCallback() {
150
 
147
 
151
					@Override
Line 148... Line 152...
148
					public void onError(Request request, Throwable exception) {
152
					public void onError(Request request, Throwable exception) {
Line -... Line 153...
-
 
153
						// TODO Auto-generated method stub
149
						// TODO Auto-generated method stub
154
 
150
 
155
					}
151
					}
156
 
152
 
157
					@Override
153
					public void onResponseReceived(Request request,
158
					public void onResponseReceived(Request request,
Line 188... Line 193...
188
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
193
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
189
					+ "/InventoryKeyWordList/"+mode+"/"+ identifiant);
194
					+ "/InventoryKeyWordList/"+mode+"/"+ identifiant);
190
			try {
195
			try {
191
				rb.sendRequest(postData, new RequestCallback() {
196
				rb.sendRequest(postData, new RequestCallback() {
Line -... Line 197...
-
 
197
 
192
 
198
					@Override
193
					public void onError(Request request, Throwable exception) {
199
					public void onError(Request request, Throwable exception) {
Line 194... Line 200...
194
						// TODO Auto-generated method stub
200
						// TODO Auto-generated method stub
Line -... Line 201...
-
 
201
 
195
 
202
					}
196
					}
203
 
197
 
204
					@Override
198
					public void onResponseReceived(Request request,
205
					public void onResponseReceived(Request request,
199
							Response response) {
206
							Response response) {
Line 234... Line 241...
234
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
241
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
235
					+ "/InventoryKeyWordList/"+mode+"/"+identifiant);
242
					+ "/InventoryKeyWordList/"+mode+"/"+identifiant);
236
			try {
243
			try {
237
				rb.sendRequest(postData, new RequestCallback() {
244
				rb.sendRequest(postData, new RequestCallback() {
Line -... Line 245...
-
 
245
 
238
 
246
					@Override
239
					public void onError(Request request, Throwable exception) {
247
					public void onError(Request request, Throwable exception) {
Line 240... Line 248...
240
						// TODO Auto-generated method stub
248
						// TODO Auto-generated method stub
Line -... Line 249...
-
 
249
 
241
 
250
					}
242
					}
251
 
243
 
252
					@Override
Line 244... Line 253...
244
					public void onResponseReceived(Request request,
253
					public void onResponseReceived(Request request,