@Component public class HttpClientHelper extends Object
| Constructor and Description |
|---|
HttpClientHelper() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(Boolean trustSelfSignedCertificate,
Boolean disableHostnameVerification)
Creates a new HTTP client.
|
public org.apache.http.impl.client.CloseableHttpClient createHttpClient(Boolean trustSelfSignedCertificate, Boolean disableHostnameVerification) throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException
trustSelfSignedCertificate - specifies whether to trust a self-signed certificatedisableHostnameVerification - specifies whether to turn off hostname verificationKeyStoreException - if a key store exception occursNoSuchAlgorithmException - if a no such algorithm exception occursKeyManagementException - if key management exceptionCopyright © 2019. All rights reserved.