public class NativeHttpClient extends Object implements IHttpClient
IHttpClient.RequestMethod_gson, CHARSET, CONNECT_TIMED_OUT_MESSAGE, CONTENT_TYPE_FORM, CONTENT_TYPE_JSON, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_MAX_RETRY_TIMES, DEFAULT_READ_TIMEOUT, IO_ERROR_MESSAGE, JPUSH_USER_AGENT, RATE_LIMIT_QUOTA, RATE_LIMIT_Remaining, RATE_LIMIT_Reset, READ_TIMED_OUT_MESSAGE, RESPONSE_OK| 构造器和说明 |
|---|
NativeHttpClient(String authCode) |
NativeHttpClient(String authCode,
int maxRetryTimes,
HttpProxy proxy) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
initSSL() |
ResponseWrapper |
sendGet(String url,
String params) |
ResponseWrapper |
sendPost(String url,
String content) |
ResponseWrapper |
sendRequest(String url,
String content,
IHttpClient.RequestMethod method) |
public NativeHttpClient(String authCode)
public ResponseWrapper sendGet(String url, String params) throws APIConnectionException, APIRequestException
sendGet 在接口中 IHttpClientAPIConnectionExceptionAPIRequestExceptionpublic ResponseWrapper sendPost(String url, String content) throws APIConnectionException, APIRequestException
sendPost 在接口中 IHttpClientAPIConnectionExceptionAPIRequestExceptionpublic ResponseWrapper sendRequest(String url, String content, IHttpClient.RequestMethod method) throws APIConnectionException, APIRequestException
protected void initSSL()
Copyright © 2014. All Rights Reserved.