Class CollectClientFactory
- java.lang.Object
-
- fr.gouv.vitam.common.external.client.VitamClientFactory<CollectClient>
-
- fr.gouv.vitam.collect.external.client.CollectClientFactory
-
- All Implemented Interfaces:
VitamClientFactoryInterface<CollectClient>
public class CollectClientFactory extends VitamClientFactory<CollectClient>
Collect Client Factory class. Provide a rest or a mock version of the client
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface fr.gouv.vitam.common.client.VitamClientFactoryInterface
VitamClientFactoryInterface.VitamClientType
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.external.client.VitamClientFactory
clientConfiguration
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CollectClientFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
changeMode(SecureClientConfiguration configuration)
static void
changeMode(java.lang.String configurationFile)
CollectClient
getClient()
This method returns the correct Client adapted to the business casestatic CollectClientFactory
getInstance()
Get the AccessClientFactory instance-
Methods inherited from class fr.gouv.vitam.common.external.client.VitamClientFactory
changeResourcePath, changeServerPort, getClientConfiguration, getDefaultConfigCient, getDefaultConfigCient, getHttpClient, getHttpClient, getResourcePath, getServiceUrl, getVitamClientType, initialisation, isAllowGzipDecoded, isAllowGzipEncoded, resetConnections, resume, setGzipdecoded, setGzipEncoded, setVitamClientType, shutdown, toString
-
-
-
-
Method Detail
-
getInstance
public static CollectClientFactory getInstance()
Get the AccessClientFactory instance- Returns:
- the instance
-
getClient
public CollectClient getClient()
Description copied from interface:VitamClientFactoryInterface
This method returns the correct Client adapted to the business case- Returns:
- the Vitam client
-
changeMode
public static void changeMode(SecureClientConfiguration configuration)
- Parameters:
configuration
- null for MOCK
-
changeMode
public static void changeMode(java.lang.String configurationFile)
-
-