Class HttpWrapper


  • public class HttpWrapper
    extends java.lang.Object
    Manages the access to the HttpClient applying a consistent approach/configuration.
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpWrapper()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.http.conn.ssl.SSLConnectionSocketFactory generateSSF()
      generates a static SSL Connection socket factory.
      org.apache.http.impl.client.CloseableHttpClient getHttpClient​(java.lang.String username, java.lang.String password)  
      • Methods inherited from class java.lang.Object

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

      • HttpWrapper

        public HttpWrapper()
    • Method Detail

      • generateSSF

        public static org.apache.http.conn.ssl.SSLConnectionSocketFactory generateSSF()
        generates a static SSL Connection socket factory.
        Returns:
      • getHttpClient

        public org.apache.http.impl.client.CloseableHttpClient getHttpClient​(java.lang.String username,
                                                                             java.lang.String password)