public class HttpSimpleClient extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HttpSimpleClient.HttpResult |
| 构造器和说明 |
|---|
HttpSimpleClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpSimpleClient.HttpResult |
httpDelete(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
Delete method.
|
static HttpSimpleClient.HttpResult |
httpDelete(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs,
boolean isSsl)
Delete method.
|
static HttpSimpleClient.HttpResult |
httpGet(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
发送GET请求.
|
static HttpSimpleClient.HttpResult |
httpGet(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs,
boolean isSsl)
Get method.
|
static HttpSimpleClient.HttpResult |
httpPost(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
发送POST请求.
|
static HttpSimpleClient.HttpResult |
httpPost(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs,
boolean isSsl)
发送POST请求.
|
public static HttpSimpleClient.HttpResult httpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSsl) throws IOException
url - urlheaders - headersparamValues - paramValuesencoding - encodingreadTimeoutMs - readTimeoutMsisSsl - isSslIOException - io exceptionpublic static HttpSimpleClient.HttpResult httpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
IOExceptionpublic static HttpSimpleClient.HttpResult httpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSsl) throws IOException
url - urlheaders - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时isSsl - 是否httpsIOException - io exceptionpublic static HttpSimpleClient.HttpResult httpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
url - urlheaders - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时IOException - io exceptionpublic static HttpSimpleClient.HttpResult httpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSsl) throws IOException
url - urlheaders - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时isSsl - 是否httpsIOException - io exceptionpublic static HttpSimpleClient.HttpResult httpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
url - urlheaders - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时IOException - io exceptionCopyright © 2018–2020 Alibaba Group. All rights reserved.