public class ApacheHttpClient extends IHttpClient
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
ACCEPT_ENCODING |
protected static String |
CONTENT_TYPE |
clientConfig| 限定符和类型 | 方法和说明 |
|---|---|
Future<HttpResponse> |
asyncInvoke(HttpRequest apiRequest,
CallBack callback) |
void |
close() |
static ApacheHttpClient |
getInstance() |
static ApacheHttpClient |
getInstance(HttpClientConfig config)
已过时。
|
void |
ignoreSSLCertificate()
use HttpClientConfig.setIgnoreSSLCerts(true) instead
|
protected void |
init(HttpClientConfig config0) |
boolean |
isSingleton() |
void |
restoreSSLCertificate()
use HttpClientConfig.setIgnoreSSLCerts(false) instead
|
HttpResponse |
syncInvoke(HttpRequest apiRequest) |
@Deprecated public static ApacheHttpClient getInstance(HttpClientConfig config) throws ClientException
ClientExceptionpublic static ApacheHttpClient getInstance()
protected void init(HttpClientConfig config0) throws ClientException
init 在类中 IHttpClientClientExceptionpublic final HttpResponse syncInvoke(HttpRequest apiRequest) throws IOException, ClientException
syncInvoke 在类中 IHttpClientIOExceptionClientExceptionpublic final Future<HttpResponse> asyncInvoke(HttpRequest apiRequest, CallBack callback)
asyncInvoke 在类中 IHttpClientpublic void ignoreSSLCertificate()
ignoreSSLCertificate 在类中 IHttpClientpublic void restoreSSLCertificate()
restoreSSLCertificate 在类中 IHttpClientpublic boolean isSingleton()
isSingleton 在类中 IHttpClientpublic void close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.