use of com.opentext.ia.sdk.support.http.HttpClient in project infoarchive-sip-sdk by Enterprise-Content-Management.
the class ArchiveClients method createRestClient.
private static RestClient createRestClient(ServerConfiguration configuration, Clock clock) {
HttpClient httpClient = NewInstance.of(configuration.getHttpClientClassName(), ApacheHttpClient.class.getName()).as(HttpClient.class);
AuthenticationStrategy authentication = new AuthenticationStrategyFactory(configuration).getAuthenticationStrategy(() -> httpClient, () -> clock);
RestClient result = new RestClient(httpClient);
result.init(authentication);
return result;
}
Aggregations