| 构造器和说明 |
|---|
ServerHttpAgent(BootstrapProperties properties,
HttpClientUtil httpClientUtil) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getEncode()
Get encode.
|
String |
getTenantId()
Get tenant id.
|
Result |
httpDeleteByConfig(String path,
Map<String,String> headers,
Map<String,String> paramValues,
long readTimeoutMs)
Send HTTP delete request by dynamic config.
|
Result |
httpGetByConfig(String path,
Map<String,String> headers,
Map<String,String> paramValues,
long readTimeoutMs)
Send HTTP get request by dynamic config.
|
Result |
httpGetSimple(String path)
Http get simple.
|
Result |
httpPost(String path,
Object body)
Http post.
|
Result |
httpPostByConfig(String path,
Map<String,String> headers,
Map<String,String> paramValues,
long readTimeoutMs)
Send HTTP post request by dynamic config.
|
Result |
httpPostByDiscovery(String path,
Object body)
Send HTTP post request by discovery.
|
void |
start()
Start.
|
public ServerHttpAgent(BootstrapProperties properties, HttpClientUtil httpClientUtil)
public String getTenantId()
HttpAgentgetTenantId 在接口中 HttpAgentpublic Result httpGetSimple(String path)
HttpAgenthttpGetSimple 在接口中 HttpAgentpublic Result httpPostByDiscovery(String path, Object body)
HttpAgenthttpPostByDiscovery 在接口中 HttpAgentpublic Result httpGetByConfig(String path, Map<String,String> headers, Map<String,String> paramValues, long readTimeoutMs)
HttpAgenthttpGetByConfig 在接口中 HttpAgentpublic Result httpPostByConfig(String path, Map<String,String> headers, Map<String,String> paramValues, long readTimeoutMs)
HttpAgenthttpPostByConfig 在接口中 HttpAgentCopyright © 2021. All rights reserved.