| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.common.http.client | |
| com.alibaba.nacos.common.http.client.handler |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> HttpRestResult<T> |
NacosRestTemplate.delete(String url,
Header header,
Query query,
Type responseType)
http delete URL request params are expanded using the given query
Query. |
<T> HttpRestResult<T> |
NacosRestTemplate.delete(String url,
HttpClientConfig config,
Header header,
Query query,
Type responseType)
http delete URL request params are expanded using the given query
Query. |
<T> HttpRestResult<T> |
NacosRestTemplate.exchange(String url,
HttpClientConfig config,
Header header,
Query query,
Object body,
String httpMethod,
Type responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns
the response as
HttpRestResult. |
<T> HttpRestResult<T> |
NacosRestTemplate.exchangeForm(String url,
Header header,
Query query,
Map<String,String> bodyValues,
String httpMethod,
Type responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns
the response as
HttpRestResult. |
<T> HttpRestResult<T> |
NacosRestTemplate.get(String url,
Header header,
Query query,
Type responseType)
http get URL request params are expanded using the given query
Query. |
<T> HttpRestResult<T> |
NacosRestTemplate.get(String url,
HttpClientConfig config,
Header header,
Query query,
Type responseType)
http get URL request params are expanded using the given query
Query. |
<T> HttpRestResult<T> |
NacosRestTemplate.getLarge(String url,
Header header,
Query query,
Object body,
Type responseType)
get request, may be pulling a lot of data URL request params are expanded using the given query
Query,
More request parameters can be set via body. |
<T> HttpRestResult<T> |
NacosRestTemplate.post(String url,
Header header,
Query query,
Object body,
Type responseType)
http post Create a new resource by POSTing the given object to the http request.
|
<T> HttpRestResult<T> |
NacosRestTemplate.postForm(String url,
Header header,
Map<String,String> bodyValues,
Type responseType)
http post from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.postForm(String url,
Header header,
Query query,
Map<String,String> bodyValues,
Type responseType)
http post from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.postForm(String url,
HttpClientConfig config,
Header header,
Map<String,String> bodyValues,
Type responseType)
http post from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.postJson(String url,
Header header,
Query query,
String body,
Type responseType)
http post json Create a new resource by POSTing the given object to the http request, http header contentType
default 'application/json;charset=UTF-8'.
|
<T> HttpRestResult<T> |
NacosRestTemplate.postJson(String url,
Header header,
String body,
Type responseType)
http post json Create a new resource by POSTing the given object to the http request, http header contentType
default 'application/json;charset=UTF-8'.
|
<T> HttpRestResult<T> |
NacosRestTemplate.put(String url,
Header header,
Query query,
Object body,
Type responseType)
http put Create a new resource by PUTting the given body to http request.
|
<T> HttpRestResult<T> |
NacosRestTemplate.putForm(String url,
Header header,
Map<String,String> bodyValues,
Type responseType)
http put from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.putForm(String url,
Header header,
Query query,
Map<String,String> bodyValues,
Type responseType)
http put from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.putForm(String url,
HttpClientConfig config,
Header header,
Map<String,String> bodyValues,
Type responseType)
http put from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.putJson(String url,
Header header,
Query query,
String body,
Type responseType)
http put json Create a new resource by PUTting the given body to http request, http header contentType default
'application/json;charset=UTF-8'.
|
<T> HttpRestResult<T> |
NacosRestTemplate.putJson(String url,
Header header,
String body,
Type responseType)
http put json Create a new resource by PUTting the given body to http request, http header contentType default
'application/json;charset=UTF-8'.
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract HttpRestResult<T> |
AbstractResponseHandler.convertResult(HttpClientResponse response,
Type responseType)
Abstract convertResult method, Different types of converters for expansion.
|
HttpRestResult<T> |
BeanResponseHandler.convertResult(HttpClientResponse response,
Type responseType) |
HttpRestResult<T> |
RestResultResponseHandler.convertResult(HttpClientResponse response,
Type responseType) |
HttpRestResult<String> |
StringResponseHandler.convertResult(HttpClientResponse response,
Type responseType) |
HttpRestResult<T> |
AbstractResponseHandler.handle(HttpClientResponse response) |
HttpRestResult<T> |
ResponseHandler.handle(HttpClientResponse response)
handle response convert to HttpRestResult.
|
Copyright © 2018–2020 Alibaba Group. All rights reserved.