public class RestTemplateUtil extends Object
| 构造器和说明 |
|---|
RestTemplateUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Class<T> responseType,
Map<String,?> uriVariables)
DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Class<T> responseType,
Object... uriVariables)
DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
自定义请求头和请求体的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
自定义请求头和请求体的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
DELETE请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
delete(String url,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
DELETE请求调用方式
|
static <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)
通用调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
通用调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
Class<T> responseType)
GET请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
Class<T> responseType,
Map<String,?> uriVariables)
GET请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
Class<T> responseType,
Object... uriVariables)
GET请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的GET请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
org.springframework.http.HttpHeaders headers,
Class<T> responseType,
Object... uriVariables)
带请求头的GET请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
Map<String,String> headers,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的GET请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
get(String url,
Map<String,String> headers,
Class<T> responseType,
Object... uriVariables)
带请求头的GET请求调用方式
|
static org.springframework.http.HttpHeaders |
getHeaders(javax.servlet.http.HttpServletRequest request) |
static org.springframework.web.client.RestTemplate |
getRestTemplate()
获取RestTemplate实例对象,可自由调用其方法
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
Class<T> responseType)
POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
自定义请求头和请求体的POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
自定义请求头和请求体的POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
Object requestBody,
Class<T> responseType)
POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
post(String url,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
POST请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
Class<T> responseType,
Object... uriVariables)
PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
自定义请求头和请求体的PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
自定义请求头和请求体的PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
org.springframework.http.HttpHeaders headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
带请求头的PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
Map<String,String> headers,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
带请求头的PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
Object requestBody,
Class<T> responseType,
Map<String,?> uriVariables)
PUT请求调用方式
|
static <T> org.springframework.http.ResponseEntity<T> |
put(String url,
Object requestBody,
Class<T> responseType,
Object... uriVariables)
PUT请求调用方式
|
public static org.springframework.http.HttpHeaders getHeaders(javax.servlet.http.HttpServletRequest request)
public static <T> org.springframework.http.ResponseEntity<T> get(String url, Class<T> responseType)
url - 请求URLresponseType - 返回对象类型public static <T> org.springframework.http.ResponseEntity<T> get(String url, Class<T> responseType, Object... uriVariables)
url - 请求URLresponseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> get(String url, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLresponseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> get(String url, Map<String,String> headers, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> get(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> get(String url, Map<String,String> headers, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> get(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, Class<T> responseType)
url - 请求URLresponseType - 返回对象类型public static <T> org.springframework.http.ResponseEntity<T> post(String url, Object requestBody, Class<T> responseType)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型public static <T> org.springframework.http.ResponseEntity<T> post(String url, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
url - 请求URLrequestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> post(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLrequestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, Class<T> responseType, Object... uriVariables)
url - 请求URLresponseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
url - 请求URLrequestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> put(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLrequestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Class<T> responseType, Object... uriVariables)
url - 请求URLresponseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLresponseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLrequestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Object... uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, Map<String,String> headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpHeaders headers, Object requestBody, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLheaders - 请求头参数requestBody - 请求参数体responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
url - 请求URLrequestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <T> org.springframework.http.ResponseEntity<T> delete(String url, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)
url - 请求URLrequestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)
url - 请求URLmethod - 请求方法类型requestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,按顺序依次对应public static <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)
url - 请求URLmethod - 请求方法类型requestEntity - 请求头和请求体封装对象responseType - 返回对象类型uriVariables - URL中的变量,与Map中的key对应public static org.springframework.web.client.RestTemplate getRestTemplate()
Copyright © 2024. All rights reserved.