public interface HttpAgent
| Modifier and Type | Method and Description |
|---|---|
String |
getEncode()
get encode
|
String |
getName()
get name
|
String |
getNamespace()
get namespace
|
String |
getTenant()
get tenant
|
HttpSimpleClient.HttpResult |
httpDelete(String path,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
invoke http delete method
|
HttpSimpleClient.HttpResult |
httpGet(String path,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
invoke http get method
|
HttpSimpleClient.HttpResult |
httpPost(String path,
List<String> headers,
List<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.HttpSimpleClient.HttpResult httpGet(String path, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
path - http pathheaders - http headersparamValues - http paramValues httpencoding - http encodereadTimeoutMs - http timeoutIOException - If an input or output exception occurredHttpSimpleClient.HttpResult httpPost(String path, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
path - http pathheaders - http headersparamValues - http paramValues httpencoding - http encodereadTimeoutMs - http timeoutIOException - If an input or output exception occurredHttpSimpleClient.HttpResult httpDelete(String path, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
path - http pathheaders - http headersparamValues - http paramValues httpencoding - http encodereadTimeoutMs - http timeoutIOException - If an input or output exception occurredString getName()
String getNamespace()
String getTenant()
String getEncode()
Copyright © 2018–2020 Alibaba Group. All rights reserved.