Package dk.netarkivet.common.utils
Class HttpsClientBuilder
- java.lang.Object
-
- dk.netarkivet.common.utils.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.
-
-
-
Constructor Detail
-
HttpsClientBuilder
public HttpsClientBuilder(java.lang.String privateKeyFile)
Constructor that sets up the whole SSL connection when called. Simply usegetHttpsClient()
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.
-
-