Class HttpClientUtil

java.lang.Object
org.conical.common.bbl.web.client.HttpClientUtil

public class HttpClientUtil extends Object
Utilities to assist web service clients
Author:
rdoherty
  • 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