public class CompatibleUrlConnClient extends IHttpClient
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CompatibleUrlConnClient.HttpsCertIgnoreHelper |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
ACCEPT_ENCODING |
protected static String |
CONTENT_LENGTH |
protected static String |
CONTENT_MD5 |
protected static String |
CONTENT_TYPE |
ignoreHttpsCert| 构造器和说明 |
|---|
CompatibleUrlConnClient(HttpClientConfig clientConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
Future<HttpResponse> |
asyncInvoke(HttpRequest apiRequest,
CallBack callback) |
void |
close() |
static HttpResponse |
compatibleGetResponse(HttpRequest request) |
void |
ignoreSSLCertificate() |
protected void |
init(HttpClientConfig clientConfig) |
void |
restoreSSLCertificate() |
HttpResponse |
syncInvoke(HttpRequest request) |
public CompatibleUrlConnClient(HttpClientConfig clientConfig) throws ClientException
ClientExceptionprotected void init(HttpClientConfig clientConfig) throws ClientException
init 在类中 IHttpClientClientExceptionpublic HttpResponse syncInvoke(HttpRequest request) throws IOException
syncInvoke 在类中 IHttpClientIOExceptionpublic Future<HttpResponse> asyncInvoke(HttpRequest apiRequest, CallBack callback) throws IOException
asyncInvoke 在类中 IHttpClientIOExceptionpublic static HttpResponse compatibleGetResponse(HttpRequest request) throws IOException, ClientException
public void ignoreSSLCertificate()
ignoreSSLCertificate 在类中 IHttpClientpublic void restoreSSLCertificate()
restoreSSLCertificate 在类中 IHttpClientpublic void close()
throws IOException
IOExceptionCopyright © 2018. All Rights Reserved.