public interface IHttpClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
IHttpClient.RequestMethod |
| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
ResponseWrapper |
sendDelete(String url) |
ResponseWrapper |
sendDelete(String url,
String content) |
ResponseWrapper |
sendGet(String url) |
ResponseWrapper |
sendGet(String url,
String content) |
ResponseWrapper |
sendPost(String url,
String content) |
ResponseWrapper |
sendPut(String url,
String content) |
static final String CHARSET
static final String CONTENT_TYPE_JSON
static final String CONTENT_TYPE_FORM
static final String RATE_LIMIT_QUOTA
static final String RATE_LIMIT_Remaining
static final String RATE_LIMIT_Reset
static final String JPUSH_USER_AGENT
static final int RESPONSE_OK
static final String IO_ERROR_MESSAGE
static final String CONNECT_TIMED_OUT_MESSAGE
static final String READ_TIMED_OUT_MESSAGE
static final com.google.gson.Gson _gson
static final int DEFAULT_CONNECTION_TIMEOUT
static final int DEFAULT_READ_TIMEOUT
static final int DEFAULT_MAX_RETRY_TIMES
ResponseWrapper sendGet(String url) throws APIConnectionException, APIRequestException
ResponseWrapper sendGet(String url, String content) throws APIConnectionException, APIRequestException
ResponseWrapper sendDelete(String url) throws APIConnectionException, APIRequestException
ResponseWrapper sendDelete(String url, String content) throws APIConnectionException, APIRequestException
ResponseWrapper sendPost(String url, String content) throws APIConnectionException, APIRequestException
ResponseWrapper sendPut(String url, String content) throws APIConnectionException, APIRequestException
Copyright © 2021. All rights reserved.