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