public class ServerHttpAgent extends Object
| Constructor and Description |
|---|
ServerHttpAgent(Properties properties) |
ServerHttpAgent(ServerListManager mgr) |
ServerHttpAgent(ServerListManager mgr,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAppname() |
String |
getEncode() |
String |
getName() |
String |
getNamespace() |
String |
getTenant() |
HttpSimpleClient.HttpResult |
httpDelete(String path,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs) |
HttpSimpleClient.HttpResult |
httpGet(String path,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs) |
HttpSimpleClient.HttpResult |
httpPost(String path,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs) |
void |
start() |
public static final Logger log
public ServerHttpAgent(ServerListManager mgr)
public ServerHttpAgent(ServerListManager mgr, Properties properties)
public ServerHttpAgent(Properties properties) throws NacosException
NacosExceptionpublic HttpSimpleClient.HttpResult httpGet(String path, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
path - 相对于web应用根,以/开头headers - paramValues - encoding - readTimeoutMs - IOExceptionpublic HttpSimpleClient.HttpResult httpPost(String path, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
IOExceptionpublic HttpSimpleClient.HttpResult httpDelete(String path, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
IOExceptionpublic static String getAppname()
public void start()
throws NacosException
NacosExceptionpublic String getName()
public String getNamespace()
public String getTenant()
public String getEncode()
Copyright © 2018 Alibaba Group. All rights reserved.