public class ApacheHttpClient extends IHttpClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCEPT_ENCODING |
protected static String |
CONTENT_TYPE |
ignoreHttpsCert| Constructor and Description |
|---|
ApacheHttpClient(HttpClientConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Future<HttpResponse> |
asyncInvoke(HttpRequest apiRequest,
CallBack callback) |
void |
close() |
void |
ignoreSSLCertificate() |
protected void |
init(HttpClientConfig config) |
void |
restoreSSLCertificate() |
HttpResponse |
syncInvoke(HttpRequest apiRequest) |
protected static final String CONTENT_TYPE
protected static final String ACCEPT_ENCODING
public ApacheHttpClient(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 void close()
throws IOException
IOExceptionCopyright © 2018. All Rights Reserved.