Class HttpClientUtil
java.lang.Object
org.conical.common.bbl.web.client.HttpClientUtil
Utilities to assist web service clients
- Author:
- rdoherty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.http.client.HttpClient
Creates an HttpClient pre-configured to pass requests over HTTPS.
-
Constructor Details
-
HttpClientUtil
public HttpClientUtil()
-
-
Method Details
-
getSslCapableHttpClient
public static org.apache.http.client.HttpClient getSslCapableHttpClient()Creates an HttpClient pre-configured to pass requests over HTTPS. This is a 'no security' client, so while the data will be encrypted, it would be easy for a malicious user to fool calling apps into believing they are contacting one server when in fact their requests are being intercepted. On the plus side, the client will support unsigned certificates without even blinking.- Returns:
- SSL-ready HttpClient
-