@@ -280,19 +280,19 @@ public UriTemplateHandler getUriTemplateHandler() {
280
280
// GET
281
281
282
282
@ Override
283
- public <T > T getForObject (String url , Class <T > responseType , Object ... urlVariables ) throws RestClientException {
283
+ public <T > T getForObject (String url , Class <T > responseType , Object ... uriVariables ) throws RestClientException {
284
284
RequestCallback requestCallback = acceptHeaderRequestCallback (responseType );
285
285
HttpMessageConverterExtractor <T > responseExtractor =
286
286
new HttpMessageConverterExtractor <T >(responseType , getMessageConverters (), logger );
287
- return execute (url , HttpMethod .GET , requestCallback , responseExtractor , urlVariables );
287
+ return execute (url , HttpMethod .GET , requestCallback , responseExtractor , uriVariables );
288
288
}
289
289
290
290
@ Override
291
- public <T > T getForObject (String url , Class <T > responseType , Map <String , ?> urlVariables ) throws RestClientException {
291
+ public <T > T getForObject (String url , Class <T > responseType , Map <String , ?> uriVariables ) throws RestClientException {
292
292
RequestCallback requestCallback = acceptHeaderRequestCallback (responseType );
293
293
HttpMessageConverterExtractor <T > responseExtractor =
294
294
new HttpMessageConverterExtractor <T >(responseType , getMessageConverters (), logger );
295
- return execute (url , HttpMethod .GET , requestCallback , responseExtractor , urlVariables );
295
+ return execute (url , HttpMethod .GET , requestCallback , responseExtractor , uriVariables );
296
296
}
297
297
298
298
@ Override
@@ -304,21 +304,21 @@ public <T> T getForObject(URI url, Class<T> responseType) throws RestClientExcep
304
304
}
305
305
306
306
@ Override
307
- public <T > ResponseEntity <T > getForEntity (String url , Class <T > responseType , Object ... urlVariables )
307
+ public <T > ResponseEntity <T > getForEntity (String url , Class <T > responseType , Object ... uriVariables )
308
308
throws RestClientException {
309
309
310
310
RequestCallback requestCallback = acceptHeaderRequestCallback (responseType );
311
311
ResponseExtractor <ResponseEntity <T >> responseExtractor = responseEntityExtractor (responseType );
312
- return execute (url , HttpMethod .GET , requestCallback , responseExtractor , urlVariables );
312
+ return execute (url , HttpMethod .GET , requestCallback , responseExtractor , uriVariables );
313
313
}
314
314
315
315
@ Override
316
- public <T > ResponseEntity <T > getForEntity (String url , Class <T > responseType , Map <String , ?> urlVariables )
316
+ public <T > ResponseEntity <T > getForEntity (String url , Class <T > responseType , Map <String , ?> uriVariables )
317
317
throws RestClientException {
318
318
319
319
RequestCallback requestCallback = acceptHeaderRequestCallback (responseType );
320
320
ResponseExtractor <ResponseEntity <T >> responseExtractor = responseEntityExtractor (responseType );
321
- return execute (url , HttpMethod .GET , requestCallback , responseExtractor , urlVariables );
321
+ return execute (url , HttpMethod .GET , requestCallback , responseExtractor , uriVariables );
322
322
}
323
323
324
324
@ Override
@@ -332,13 +332,13 @@ public <T> ResponseEntity<T> getForEntity(URI url, Class<T> responseType) throws
332
332
// HEAD
333
333
334
334
@ Override
335
- public HttpHeaders headForHeaders (String url , Object ... urlVariables ) throws RestClientException {
336
- return execute (url , HttpMethod .HEAD , null , headersExtractor (), urlVariables );
335
+ public HttpHeaders headForHeaders (String url , Object ... uriVariables ) throws RestClientException {
336
+ return execute (url , HttpMethod .HEAD , null , headersExtractor (), uriVariables );
337
337
}
338
338
339
339
@ Override
340
- public HttpHeaders headForHeaders (String url , Map <String , ?> urlVariables ) throws RestClientException {
341
- return execute (url , HttpMethod .HEAD , null , headersExtractor (), urlVariables );
340
+ public HttpHeaders headForHeaders (String url , Map <String , ?> uriVariables ) throws RestClientException {
341
+ return execute (url , HttpMethod .HEAD , null , headersExtractor (), uriVariables );
342
342
}
343
343
344
344
@ Override
@@ -350,16 +350,16 @@ public HttpHeaders headForHeaders(URI url) throws RestClientException {
350
350
// POST
351
351
352
352
@ Override
353
- public URI postForLocation (String url , Object request , Object ... urlVariables ) throws RestClientException {
353
+ public URI postForLocation (String url , Object request , Object ... uriVariables ) throws RestClientException {
354
354
RequestCallback requestCallback = httpEntityCallback (request );
355
- HttpHeaders headers = execute (url , HttpMethod .POST , requestCallback , headersExtractor (), urlVariables );
355
+ HttpHeaders headers = execute (url , HttpMethod .POST , requestCallback , headersExtractor (), uriVariables );
356
356
return headers .getLocation ();
357
357
}
358
358
359
359
@ Override
360
- public URI postForLocation (String url , Object request , Map <String , ?> urlVariables ) throws RestClientException {
360
+ public URI postForLocation (String url , Object request , Map <String , ?> uriVariables ) throws RestClientException {
361
361
RequestCallback requestCallback = httpEntityCallback (request );
362
- HttpHeaders headers = execute (url , HttpMethod .POST , requestCallback , headersExtractor (), urlVariables );
362
+ HttpHeaders headers = execute (url , HttpMethod .POST , requestCallback , headersExtractor (), uriVariables );
363
363
return headers .getLocation ();
364
364
}
365
365
@@ -427,15 +427,15 @@ public <T> ResponseEntity<T> postForEntity(URI url, Object request, Class<T> res
427
427
// PUT
428
428
429
429
@ Override
430
- public void put (String url , Object request , Object ... urlVariables ) throws RestClientException {
430
+ public void put (String url , Object request , Object ... uriVariables ) throws RestClientException {
431
431
RequestCallback requestCallback = httpEntityCallback (request );
432
- execute (url , HttpMethod .PUT , requestCallback , null , urlVariables );
432
+ execute (url , HttpMethod .PUT , requestCallback , null , uriVariables );
433
433
}
434
434
435
435
@ Override
436
- public void put (String url , Object request , Map <String , ?> urlVariables ) throws RestClientException {
436
+ public void put (String url , Object request , Map <String , ?> uriVariables ) throws RestClientException {
437
437
RequestCallback requestCallback = httpEntityCallback (request );
438
- execute (url , HttpMethod .PUT , requestCallback , null , urlVariables );
438
+ execute (url , HttpMethod .PUT , requestCallback , null , uriVariables );
439
439
}
440
440
441
441
@ Override
@@ -448,13 +448,13 @@ public void put(URI url, Object request) throws RestClientException {
448
448
// DELETE
449
449
450
450
@ Override
451
- public void delete (String url , Object ... urlVariables ) throws RestClientException {
452
- execute (url , HttpMethod .DELETE , null , null , urlVariables );
451
+ public void delete (String url , Object ... uriVariables ) throws RestClientException {
452
+ execute (url , HttpMethod .DELETE , null , null , uriVariables );
453
453
}
454
454
455
455
@ Override
456
- public void delete (String url , Map <String , ?> urlVariables ) throws RestClientException {
457
- execute (url , HttpMethod .DELETE , null , null , urlVariables );
456
+ public void delete (String url , Map <String , ?> uriVariables ) throws RestClientException {
457
+ execute (url , HttpMethod .DELETE , null , null , uriVariables );
458
458
}
459
459
460
460
@ Override
@@ -466,16 +466,16 @@ public void delete(URI url) throws RestClientException {
466
466
// OPTIONS
467
467
468
468
@ Override
469
- public Set <HttpMethod > optionsForAllow (String url , Object ... urlVariables ) throws RestClientException {
469
+ public Set <HttpMethod > optionsForAllow (String url , Object ... uriVariables ) throws RestClientException {
470
470
ResponseExtractor <HttpHeaders > headersExtractor = headersExtractor ();
471
- HttpHeaders headers = execute (url , HttpMethod .OPTIONS , null , headersExtractor , urlVariables );
471
+ HttpHeaders headers = execute (url , HttpMethod .OPTIONS , null , headersExtractor , uriVariables );
472
472
return headers .getAllow ();
473
473
}
474
474
475
475
@ Override
476
- public Set <HttpMethod > optionsForAllow (String url , Map <String , ?> urlVariables ) throws RestClientException {
476
+ public Set <HttpMethod > optionsForAllow (String url , Map <String , ?> uriVariables ) throws RestClientException {
477
477
ResponseExtractor <HttpHeaders > headersExtractor = headersExtractor ();
478
- HttpHeaders headers = execute (url , HttpMethod .OPTIONS , null , headersExtractor , urlVariables );
478
+ HttpHeaders headers = execute (url , HttpMethod .OPTIONS , null , headersExtractor , uriVariables );
479
479
return headers .getAllow ();
480
480
}
481
481
@@ -574,17 +574,17 @@ public <T> ResponseEntity<T> exchange(RequestEntity<?> requestEntity, Parameteri
574
574
575
575
@ Override
576
576
public <T > T execute (String url , HttpMethod method , RequestCallback requestCallback ,
577
- ResponseExtractor <T > responseExtractor , Object ... urlVariables ) throws RestClientException {
577
+ ResponseExtractor <T > responseExtractor , Object ... uriVariables ) throws RestClientException {
578
578
579
- URI expanded = getUriTemplateHandler ().expand (url , urlVariables );
579
+ URI expanded = getUriTemplateHandler ().expand (url , uriVariables );
580
580
return doExecute (expanded , method , requestCallback , responseExtractor );
581
581
}
582
582
583
583
@ Override
584
584
public <T > T execute (String url , HttpMethod method , RequestCallback requestCallback ,
585
- ResponseExtractor <T > responseExtractor , Map <String , ?> urlVariables ) throws RestClientException {
585
+ ResponseExtractor <T > responseExtractor , Map <String , ?> uriVariables ) throws RestClientException {
586
586
587
- URI expanded = getUriTemplateHandler ().expand (url , urlVariables );
587
+ URI expanded = getUriTemplateHandler ().expand (url , uriVariables );
588
588
return doExecute (expanded , method , requestCallback , responseExtractor );
589
589
}
590
590
0 commit comments