public class NativeHttpClient extends Object implements IHttpClient
| 限定符和类型 | 类和说明 |
|---|---|
static class |
NativeHttpClient.SimpleHostnameVerifier |
static class |
NativeHttpClient.SimpleTrustManager |
IHttpClient.RequestMethod| 构造器和说明 |
|---|
NativeHttpClient() |
NativeHttpClient(int maxRetryTimes) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
initSSL() |
ResponseWrapper |
sendGet(String url,
String params,
String authCode) |
ResponseWrapper |
sendPost(String url,
String content,
String authCode) |
ResponseWrapper |
sendRequest(String url,
String content,
IHttpClient.RequestMethod method,
String authCode) |
public NativeHttpClient()
public NativeHttpClient(int maxRetryTimes)
public ResponseWrapper sendGet(String url, String params, String authCode) throws APIConnectionException, APIRequestException
sendGet 在接口中 IHttpClientAPIConnectionExceptionAPIRequestExceptionpublic ResponseWrapper sendPost(String url, String content, String authCode) throws APIConnectionException, APIRequestException
sendPost 在接口中 IHttpClientAPIConnectionExceptionAPIRequestExceptionpublic ResponseWrapper sendRequest(String url, String content, IHttpClient.RequestMethod method, String authCode) throws APIConnectionException, APIRequestException
protected void initSSL()
Copyright © 2014. All Rights Reserved.