@Component public class RestTemplateUtils extends Object
| 构造器和说明 |
|---|
RestTemplateUtils(org.springframework.web.client.RestTemplate restTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Class<T> responseType,
Map<String,?> uriVariables)
DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Class<T> responseType,
Object... uriVariables)
DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
自定义请求头和请求体的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
自定义请求头和请求体的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
DELETE请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
通用调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
通用调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
Class<T> responseType)
GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
Class<T> responseType,
Map<String,?> uriVariables)
GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
Class<T> responseType,
Object... uriVariables)
GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Object... uriVariables)
带请求头的GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
Map<String,String> headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
get(String url,
Map<String,String> headers,
Class<T> responseType,
Object... uriVariables)
带请求头的GET请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
Class<T> responseType)
POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
自定义请求头和请求体的POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
自定义请求头和请求体的POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
Object requestBody,
Class<T> responseType)
POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
post(String url,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
POST请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
Class<T> responseType,
Object... uriVariables)
PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
自定义请求头和请求体的PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
自定义请求头和请求体的PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
PUT请求调用方式
|
<T> org.springframework.http.ResponseEntity<T> |
put(String url,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
PUT请求调用方式
|
public RestTemplateUtils(org.springframework.web.client.RestTemplate restTemplate)
public <T> org.springframework.http.ResponseEntity<T> get(String url, Class<T> responseType)
public <T> org.springframework.http.ResponseEntity<T> get(String url, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> get(String url, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> get(String url, Map<String,String> headers, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> get(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> get(String url, Map<String,String> headers, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> get(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, Class<T> responseType)
public <T> org.springframework.http.ResponseEntity<T> post(String url, Object requestBody, Class<T> responseType)
public <T> org.springframework.http.ResponseEntity<T> post(String url, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
Copyright © 2021 tan. All rights reserved.