| Package | Description |
|---|---|
| com.chanjet.openapi.sdk.java | |
| com.chanjet.openapi.sdk.java.utils |
| Modifier and Type | Method and Description |
|---|---|
<T extends ChanjetResponse> |
AbstractChanjetClient.doDelete(ChanjetRequest<T> request) |
HttpResponse |
AbstractChanjetClient.doExecute(ChanjetRequest<ChanjetResponse> request) |
HttpResponse |
ChanjetClient.doExecute(ChanjetRequest<ChanjetResponse> request)
指定调用,返回HttpResponse
|
<T extends ChanjetResponse> |
AbstractChanjetClient.doGet(ChanjetRequest<T> request) |
<T extends ChanjetResponse> |
AbstractChanjetClient.doPost(ChanjetRequest<T> request) |
<T extends ChanjetResponse> |
AbstractChanjetClient.doPut(ChanjetRequest<T> request) |
<T extends ChanjetResponse> |
AbstractChanjetClient.invoke(ChanjetRequest<T> request) |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
HttpUtils.doDelete(String url,
Map<String,String> params,
Map<String,String> headers,
String contentType,
int connectTimeout,
int readTimeout)
执行HTTP DELETE请求。
|
static HttpResponse |
HttpUtils.doGet(String url,
Map<String,String> headers,
Map<String,String> params,
String contentType,
int connectTimeout,
int readTimeout)
执行HTTP GET请求。
|
static HttpResponse |
HttpUtils.doPost(String url,
Map<String,String> headers,
Map<String,String> params,
String contentType,
String body,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort)
执行HTTP POST请求,可使用代理proxy。
|
static HttpResponse |
HttpUtils.doPost(String url,
Map<String,String> headers,
String contentType,
byte[] content,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort)
执行HTTP POST请求。
|
static HttpResponse |
HttpUtils.doPut(String url,
Map<String,String> headers,
Map<String,String> params,
String contentType,
String body,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort)
执行HTTP PUT请求
|
static HttpResponse |
HttpUtils.doPut(String url,
Map<String,String> headers,
String ctype,
byte[] content,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort) |
protected static HttpResponse |
HttpUtils.getHttpResponse(HttpURLConnection conn) |
Copyright © 2021. All rights reserved.