public class ServerHttpAgent extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
addressPort |
static String |
appKey |
static String |
appName |
static String |
domainName |
static String |
serverPort |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
reSetCurrentServerIp()
集群服务器列表发送变化,重置currentServerIp
|
public static final String appKey
public static final String appName
public static String serverPort
public static String domainName
public static String addressPort
public 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 void reSetCurrentServerIp()
Copyright © 2016. All rights reserved.