public class CompatibleUrlConnClient extends IHttpClient
| Modifier and Type | Class and Description |
|---|---|
static class |
CompatibleUrlConnClient.HttpsCertIgnoreHelper |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCEPT_ENCODING |
protected static String |
CONTENT_LENGTH |
protected static String |
CONTENT_MD5 |
protected static String |
CONTENT_TYPE |
ignoreHttpsCert| Constructor and Description |
|---|
CompatibleUrlConnClient(HttpClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected static final String CONTENT_TYPE
protected static final String CONTENT_MD5
protected static final String CONTENT_LENGTH
protected static final String ACCEPT_ENCODING
public CompatibleUrlConnClient(HttpClientConfig clientConfig) throws ClientException
ClientExceptionprotected void init(HttpClientConfig clientConfig) throws ClientException
init in class IHttpClientClientExceptionpublic HttpResponse syncInvoke(HttpRequest request) throws IOException
syncInvoke in class IHttpClientIOExceptionpublic Future<HttpResponse> asyncInvoke(HttpRequest apiRequest, CallBack callback) throws IOException
asyncInvoke in class IHttpClientIOExceptionpublic static HttpResponse compatibleGetResponse(HttpRequest request) throws IOException, ClientException
IOExceptionClientExceptionpublic void ignoreSSLCertificate()
ignoreSSLCertificate in class IHttpClientpublic void restoreSSLCertificate()
restoreSSLCertificate in class IHttpClientpublic void close()
throws IOException
IOExceptionCopyright © 2018. All Rights Reserved.