Search in sources :

Example 6 with Clock

use of com.opentext.ia.sdk.support.datetime.Clock in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class ArchiveClients method usingAlreadyConfiguredServer.

/**
   * Creates a new ArchiveClient instance without installing any artifacts in the archive using the default RestClient.
   * @param serverConfiguration How to communicate with the server
   * @return An ArchiveClient
   */
public static ArchiveClient usingAlreadyConfiguredServer(ServerConfiguration serverConfiguration) {
    Clock clock = new DefaultClock();
    RestClient restClient = createRestClient(serverConfiguration, clock);
    return usingAlreadyConfiguredServer(serverConfiguration, restClient, clock);
}
Also used : DefaultClock(com.opentext.ia.sdk.support.datetime.DefaultClock) InfoArchiveRestClient(com.opentext.ia.sdk.client.impl.InfoArchiveRestClient) RestClient(com.opentext.ia.sdk.support.http.rest.RestClient) Clock(com.opentext.ia.sdk.support.datetime.Clock) DefaultClock(com.opentext.ia.sdk.support.datetime.DefaultClock)

Aggregations

Clock (com.opentext.ia.sdk.support.datetime.Clock)6 HttpClient (com.opentext.ia.sdk.support.http.HttpClient)4 Test (org.junit.Test)4 InfoArchiveRestClient (com.opentext.ia.sdk.client.impl.InfoArchiveRestClient)2 DefaultClock (com.opentext.ia.sdk.support.datetime.DefaultClock)2 RestClient (com.opentext.ia.sdk.support.http.rest.RestClient)2 ServerConfiguration (com.opentext.ia.sdk.client.api.ServerConfiguration)1 AuthenticationStrategy (com.opentext.ia.sdk.support.http.rest.AuthenticationStrategy)1 JwtAuthentication (com.opentext.ia.sdk.support.http.rest.JwtAuthentication)1