|
|
|
@ -500,7 +500,7 @@ public class TestRestTemplate {
|
|
|
|
|
*/
|
|
|
|
|
public <T> ResponseEntity<T> postForEntity(String url, Object request,
|
|
|
|
|
Class<T> responseType, Map<String, ?> urlVariables)
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
return this.restTemplate.postForEntity(url, request, responseType, urlVariables);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -743,7 +743,7 @@ public class TestRestTemplate {
|
|
|
|
|
*/
|
|
|
|
|
public <T> ResponseEntity<T> exchange(String url, HttpMethod method,
|
|
|
|
|
HttpEntity<?> requestEntity, Class<T> responseType, Object... urlVariables)
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
return this.restTemplate.exchange(url, method, requestEntity, responseType,
|
|
|
|
|
urlVariables);
|
|
|
|
|
}
|
|
|
|
@ -788,7 +788,7 @@ public class TestRestTemplate {
|
|
|
|
|
*/
|
|
|
|
|
public <T> ResponseEntity<T> exchange(URI url, HttpMethod method,
|
|
|
|
|
HttpEntity<?> requestEntity, Class<T> responseType)
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
return this.restTemplate.exchange(applyRootUriIfNecessary(url), method,
|
|
|
|
|
requestEntity, responseType);
|
|
|
|
|
}
|
|
|
|
@ -871,7 +871,7 @@ public class TestRestTemplate {
|
|
|
|
|
*/
|
|
|
|
|
public <T> ResponseEntity<T> exchange(URI url, HttpMethod method,
|
|
|
|
|
HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType)
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
return this.restTemplate.exchange(applyRootUriIfNecessary(url), method,
|
|
|
|
|
requestEntity, responseType);
|
|
|
|
|
}
|
|
|
|
@ -939,7 +939,7 @@ public class TestRestTemplate {
|
|
|
|
|
*/
|
|
|
|
|
public <T> T execute(String url, HttpMethod method, RequestCallback requestCallback,
|
|
|
|
|
ResponseExtractor<T> responseExtractor, Object... urlVariables)
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
return this.restTemplate.execute(url, method, requestCallback, responseExtractor,
|
|
|
|
|
urlVariables);
|
|
|
|
|
}
|
|
|
|
@ -963,7 +963,7 @@ public class TestRestTemplate {
|
|
|
|
|
*/
|
|
|
|
|
public <T> T execute(String url, HttpMethod method, RequestCallback requestCallback,
|
|
|
|
|
ResponseExtractor<T> responseExtractor, Map<String, ?> urlVariables)
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
throws RestClientException {
|
|
|
|
|
return this.restTemplate.execute(url, method, requestCallback, responseExtractor,
|
|
|
|
|
urlVariables);
|
|
|
|
|
}
|
|
|
|
|