cn.jpush.api.common.connection
类 NativeHttpClient
java.lang.Object
cn.jpush.api.common.connection.NativeHttpClient
- 所有已实现的接口:
- IHttpClient
public class NativeHttpClient
- extends Object
- implements IHttpClient
| 从接口 cn.jpush.api.common.connection.IHttpClient 继承的字段 |
_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 |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeHttpClient
public NativeHttpClient(String authCode)
NativeHttpClient
public NativeHttpClient(String authCode,
int maxRetryTimes,
HttpProxy proxy)
sendGet
public ResponseWrapper sendGet(String url)
throws APIConnectionException,
APIRequestException
- 指定者:
- 接口
IHttpClient 中的 sendGet
- 抛出:
APIConnectionException
APIRequestException
sendDelete
public ResponseWrapper sendDelete(String url)
throws APIConnectionException,
APIRequestException
- 指定者:
- 接口
IHttpClient 中的 sendDelete
- 抛出:
APIConnectionException
APIRequestException
sendPost
public ResponseWrapper sendPost(String url,
String content)
throws APIConnectionException,
APIRequestException
- 指定者:
- 接口
IHttpClient 中的 sendPost
- 抛出:
APIConnectionException
APIRequestException
doRequest
public ResponseWrapper doRequest(String url,
String content,
IHttpClient.RequestMethod method)
throws APIConnectionException,
APIRequestException
- 抛出:
APIConnectionException
APIRequestException
initSSL
protected void initSSL()
Copyright © 2014. All Rights Reserved.