@@ -210,7 +210,9 @@ public void performRequestAsync(Request request, ResponseListener responseListen
210
210
* @throws IOException in case of a problem or the connection was aborted
211
211
* @throws ClientProtocolException in case of an http protocol error
212
212
* @throws ResponseException in case Elasticsearch responded with a status code that indicated an error
213
+ * @deprecated prefer {@link #performRequest(Request)}
213
214
*/
215
+ @ Deprecated
214
216
public Response performRequest (String method , String endpoint , Header ... headers ) throws IOException {
215
217
Request request = new Request (method , endpoint );
216
218
request .setHeaders (headers );
@@ -229,7 +231,9 @@ public Response performRequest(String method, String endpoint, Header... headers
229
231
* @throws IOException in case of a problem or the connection was aborted
230
232
* @throws ClientProtocolException in case of an http protocol error
231
233
* @throws ResponseException in case Elasticsearch responded with a status code that indicated an error
234
+ * @deprecated prefer {@link #performRequest(Request)}
232
235
*/
236
+ @ Deprecated
233
237
public Response performRequest (String method , String endpoint , Map <String , String > params , Header ... headers ) throws IOException {
234
238
Request request = new Request (method , endpoint );
235
239
addParameters (request , params );
@@ -252,7 +256,9 @@ public Response performRequest(String method, String endpoint, Map<String, Strin
252
256
* @throws IOException in case of a problem or the connection was aborted
253
257
* @throws ClientProtocolException in case of an http protocol error
254
258
* @throws ResponseException in case Elasticsearch responded with a status code that indicated an error
259
+ * @deprecated prefer {@link #performRequest(Request)}
255
260
*/
261
+ @ Deprecated
256
262
public Response performRequest (String method , String endpoint , Map <String , String > params ,
257
263
HttpEntity entity , Header ... headers ) throws IOException {
258
264
Request request = new Request (method , endpoint );
@@ -289,7 +295,9 @@ public Response performRequest(String method, String endpoint, Map<String, Strin
289
295
* @throws IOException in case of a problem or the connection was aborted
290
296
* @throws ClientProtocolException in case of an http protocol error
291
297
* @throws ResponseException in case Elasticsearch responded with a status code that indicated an error
298
+ * @deprecated prefer {@link #performRequest(Request)}
292
299
*/
300
+ @ Deprecated
293
301
public Response performRequest (String method , String endpoint , Map <String , String > params ,
294
302
HttpEntity entity , HttpAsyncResponseConsumerFactory httpAsyncResponseConsumerFactory ,
295
303
Header ... headers ) throws IOException {
@@ -310,7 +318,9 @@ public Response performRequest(String method, String endpoint, Map<String, Strin
310
318
* @param endpoint the path of the request (without host and port)
311
319
* @param responseListener the {@link ResponseListener} to notify when the request is completed or fails
312
320
* @param headers the optional request headers
321
+ * @deprecated prefer {@link #performRequestAsync(Request, ResponseListener)}
313
322
*/
323
+ @ Deprecated
314
324
public void performRequestAsync (String method , String endpoint , ResponseListener responseListener , Header ... headers ) {
315
325
Request request ;
316
326
try {
@@ -333,7 +343,9 @@ public void performRequestAsync(String method, String endpoint, ResponseListener
333
343
* @param params the query_string parameters
334
344
* @param responseListener the {@link ResponseListener} to notify when the request is completed or fails
335
345
* @param headers the optional request headers
346
+ * @deprecated prefer {@link #performRequestAsync(Request, ResponseListener)}
336
347
*/
348
+ @ Deprecated
337
349
public void performRequestAsync (String method , String endpoint , Map <String , String > params ,
338
350
ResponseListener responseListener , Header ... headers ) {
339
351
Request request ;
@@ -361,7 +373,9 @@ public void performRequestAsync(String method, String endpoint, Map<String, Stri
361
373
* @param entity the body of the request, null if not applicable
362
374
* @param responseListener the {@link ResponseListener} to notify when the request is completed or fails
363
375
* @param headers the optional request headers
376
+ * @deprecated prefer {@link #performRequestAsync(Request, ResponseListener)}
364
377
*/
378
+ @ Deprecated
365
379
public void performRequestAsync (String method , String endpoint , Map <String , String > params ,
366
380
HttpEntity entity , ResponseListener responseListener , Header ... headers ) {
367
381
Request request ;
@@ -394,7 +408,9 @@ public void performRequestAsync(String method, String endpoint, Map<String, Stri
394
408
* connection on the client side.
395
409
* @param responseListener the {@link ResponseListener} to notify when the request is completed or fails
396
410
* @param headers the optional request headers
411
+ * @deprecated prefer {@link #performRequestAsync(Request, ResponseListener)}
397
412
*/
413
+ @ Deprecated
398
414
public void performRequestAsync (String method , String endpoint , Map <String , String > params ,
399
415
HttpEntity entity , HttpAsyncResponseConsumerFactory httpAsyncResponseConsumerFactory ,
400
416
ResponseListener responseListener , Header ... headers ) {
0 commit comments