public class HttpSimpleClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpSimpleClient.HttpResult |
| Constructor and Description |
|---|
HttpSimpleClient() |
| Modifier and Type | Method and Description |
|---|---|
static HttpSimpleClient.HttpResult |
httpDelete(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs) |
static HttpSimpleClient.HttpResult |
httpDelete(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs,
boolean isSSL) |
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) |
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
IOExceptionpublic 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 - headers - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时isSSL - 是否httpsIOExceptionpublic static HttpSimpleClient.HttpResult httpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
url - headers - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时IOExceptionpublic static HttpSimpleClient.HttpResult httpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL) throws IOException
IOExceptionpublic static HttpSimpleClient.HttpResult httpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
IOExceptionCopyright © 2018 Alibaba Group. All rights reserved.