Class HttpsClientBuilder


  • public class HttpsClientBuilder
    extends java.lang.Object
    Class for providing configured HTTPS clients to execute requests over SSL.
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpsClientBuilder​(java.lang.String privateKeyFile)
      Constructor that sets up the whole SSL connection when called.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.impl.client.CloseableHttpClient getHttpsClient()
      Build and deliver the client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpsClientBuilder

        public HttpsClientBuilder​(java.lang.String privateKeyFile)
        Constructor that sets up the whole SSL connection when called. Simply use getHttpsClient() to get a configured client.
        Parameters:
        privateKeyFile - The path to the private key file to use for authentication.
    • Method Detail

      • getHttpsClient

        public org.apache.http.impl.client.CloseableHttpClient getHttpsClient()
        Build and deliver the client.
        Returns:
        An HTTPS client to carry out requests over SSL.