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 继承的嵌套类/接口
IHttpClient.RequestMethod
 
字段摘要
 
从接口 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
 
构造方法摘要
NativeHttpClient(String authCode)
           
NativeHttpClient(String authCode, int maxRetryTimes, HttpProxy proxy)
           
 
方法摘要
 ResponseWrapper doRequest(String url, String content, IHttpClient.RequestMethod method)
           
protected  void initSSL()
           
 ResponseWrapper sendDelete(String url)
           
 ResponseWrapper sendGet(String url)
           
 ResponseWrapper sendPost(String url, String content)
           
 
从类 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.