cn.jpush.api.common.connection
接口 IHttpClient

所有已知实现类:
NativeHttpClient

public interface IHttpClient


嵌套类摘要
static class IHttpClient.RequestMethod
           
 
字段摘要
static com.google.gson.Gson _gson
           
static String CHARSET
           
static String CONNECT_TIMED_OUT_MESSAGE
           
static String CONTENT_TYPE_FORM
           
static String CONTENT_TYPE_JSON
           
static int DEFAULT_CONNECTION_TIMEOUT
           
static int DEFAULT_MAX_RETRY_TIMES
           
static int DEFAULT_READ_TIMEOUT
           
static String IO_ERROR_MESSAGE
           
static String JPUSH_USER_AGENT
           
static String RATE_LIMIT_QUOTA
           
static String RATE_LIMIT_Remaining
           
static String RATE_LIMIT_Reset
           
static String READ_TIMED_OUT_MESSAGE
           
static int RESPONSE_OK
           
 
方法摘要
 ResponseWrapper sendDelete(String url)
           
 ResponseWrapper sendGet(String url)
           
 ResponseWrapper sendPost(String url, String content)
           
 

字段详细信息

CHARSET

static final String CHARSET
另请参见:
常量字段值

CONTENT_TYPE_JSON

static final String CONTENT_TYPE_JSON
另请参见:
常量字段值

CONTENT_TYPE_FORM

static final String CONTENT_TYPE_FORM
另请参见:
常量字段值

RATE_LIMIT_QUOTA

static final String RATE_LIMIT_QUOTA
另请参见:
常量字段值

RATE_LIMIT_Remaining

static final String RATE_LIMIT_Remaining
另请参见:
常量字段值

RATE_LIMIT_Reset

static final String RATE_LIMIT_Reset
另请参见:
常量字段值

JPUSH_USER_AGENT

static final String JPUSH_USER_AGENT
另请参见:
常量字段值

RESPONSE_OK

static final int RESPONSE_OK
另请参见:
常量字段值

IO_ERROR_MESSAGE

static final String IO_ERROR_MESSAGE
另请参见:
常量字段值

CONNECT_TIMED_OUT_MESSAGE

static final String CONNECT_TIMED_OUT_MESSAGE
另请参见:
常量字段值

READ_TIMED_OUT_MESSAGE

static final String READ_TIMED_OUT_MESSAGE
另请参见:
常量字段值

_gson

static final com.google.gson.Gson _gson

DEFAULT_CONNECTION_TIMEOUT

static final int DEFAULT_CONNECTION_TIMEOUT
另请参见:
常量字段值

DEFAULT_READ_TIMEOUT

static final int DEFAULT_READ_TIMEOUT
另请参见:
常量字段值

DEFAULT_MAX_RETRY_TIMES

static final int DEFAULT_MAX_RETRY_TIMES
另请参见:
常量字段值
方法详细信息

sendGet

ResponseWrapper sendGet(String url)
                        throws APIConnectionException,
                               APIRequestException
抛出:
APIConnectionException
APIRequestException

sendDelete

ResponseWrapper sendDelete(String url)
                           throws APIConnectionException,
                                  APIRequestException
抛出:
APIConnectionException
APIRequestException

sendPost

ResponseWrapper sendPost(String url,
                         String content)
                         throws APIConnectionException,
                                APIRequestException
抛出:
APIConnectionException
APIRequestException


Copyright © 2014. All Rights Reserved.