public interface HttpAgent extends Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getEncode()
get encode.
|
String |
getName()
get name.
|
String |
getNamespace()
get namespace.
|
String |
getTenant()
get tenant.
|
HttpRestResult<String> |
httpDelete(String path,
Map<String,String> headers,
Map<String,String> paramValues,
String encoding,
long readTimeoutMs)
invoke http delete method.
|
HttpRestResult<String> |
httpGet(String path,
Map<String,String> headers,
Map<String,String> paramValues,
String encoding,
long readTimeoutMs)
invoke http get method.
|
HttpRestResult<String> |
httpPost(String path,
Map<String,String> headers,
Map<String,String> paramValues,
String encoding,
long readTimeoutMs)
invoke http post method.
|
void |
start()
start to get nacos ip list.
|
void start()
throws NacosException
NacosException - on get ip list error.HttpRestResult<String> httpGet(String path, Map<String,String> headers, Map<String,String> paramValues, String encoding, long readTimeoutMs) throws Exception
path - http pathheaders - http headersparamValues - http paramValues httpencoding - http encodereadTimeoutMs - http timeoutException - If an input or output exception occurredHttpRestResult<String> httpPost(String path, Map<String,String> headers, Map<String,String> paramValues, String encoding, long readTimeoutMs) throws Exception
path - http pathheaders - http headersparamValues - http paramValues httpencoding - http encodereadTimeoutMs - http timeoutException - If an input or output exception occurredHttpRestResult<String> httpDelete(String path, Map<String,String> headers, Map<String,String> paramValues, String encoding, long readTimeoutMs) throws Exception
path - http pathheaders - http headersparamValues - http paramValues httpencoding - http encodereadTimeoutMs - http timeoutException - If an input or output exception occurredString getName()
String getNamespace()
String getTenant()
String getEncode()
Copyright © 2018–2024 Alibaba Group. All rights reserved.