public class ApacheHttpClient extends IHttpClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCEPT_ENCODING |
protected static String |
CONTENT_TYPE |
clientConfig| Modifier and Type | Method and Description |
|---|---|
Future<HttpResponse> |
asyncInvoke(HttpRequest apiRequest,
CallBack callback) |
void |
close() |
static ApacheHttpClient |
getInstance() |
static ApacheHttpClient |
getInstance(HttpClientConfig config)
Deprecated.
|
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) |
protected static final String CONTENT_TYPE
protected static final String ACCEPT_ENCODING
@Deprecated public static ApacheHttpClient getInstance(HttpClientConfig config) throws ClientException
ClientExceptionpublic static ApacheHttpClient getInstance()
protected void init(HttpClientConfig config0) throws ClientException
init in class IHttpClientClientExceptionpublic final HttpResponse syncInvoke(HttpRequest apiRequest) throws IOException, ClientException
syncInvoke in class IHttpClientIOExceptionClientExceptionpublic final Future<HttpResponse> asyncInvoke(HttpRequest apiRequest, CallBack callback)
asyncInvoke in class IHttpClientpublic void ignoreSSLCertificate()
ignoreSSLCertificate in class IHttpClientpublic void restoreSSLCertificate()
restoreSSLCertificate in class IHttpClientpublic boolean isSingleton()
isSingleton in class IHttpClientpublic void close()
throws IOException
IOExceptionCopyright © 2022. All rights reserved.