Class CollectExternalClientFactory

java.lang.Object
fr.gouv.vitam.common.external.client.VitamClientFactory<CollectExternalClient>
fr.gouv.vitam.collect.external.client.CollectExternalClientFactory
All Implemented Interfaces:
VitamClientFactoryInterface<CollectExternalClient>

public class CollectExternalClientFactory extends VitamClientFactory<CollectExternalClient>
Collect Client Factory class. Provide a rest or a mock version of the client
  • Constructor Details

    • CollectExternalClientFactory

      protected CollectExternalClientFactory()
  • Method Details

    • getInstance

      public static CollectExternalClientFactory getInstance()
      Get the AccessClientFactory instance
      Returns:
      the instance
    • changeMode

      public static void changeMode(String configurationFile)
      Parameters:
      configurationFile - Generate MOCK vitamClientType for null configuration
    • getClient

      public CollectExternalClient getClient()
      Description copied from interface: VitamClientFactoryInterface
      This method returns the correct Client adapted to the business case
      Returns:
      the Vitam client