Class AccessExternalClientV2Factory
- java.lang.Object
-
- fr.gouv.vitam.common.external.client.VitamClientFactory<AccessExternalClientV2>
-
- fr.gouv.vitam.access.external.client.v2.AccessExternalClientV2Factory
-
- All Implemented Interfaces:
VitamClientFactoryInterface<AccessExternalClientV2>
public class AccessExternalClientV2Factory extends VitamClientFactory<AccessExternalClientV2>
Access External Client Factory
Used to create access client : if configuration file does not exist 'access-external-client.conf',
mock access client will be returned
-
-
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
AccessExternalClientV2Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
changeMode(ClientConfiguration configuration)
JUnit only!!AccessExternalClientV2
getClient()
This method returns the correct Client adapted to the business casestatic AccessExternalClientV2Factory
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 final AccessExternalClientV2Factory getInstance()
Get the AccessClientFactory instance- Returns:
- the instance
-
getClient
public AccessExternalClientV2 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(ClientConfiguration configuration)
JUnit only!!- Parameters:
configuration
- null for MOCK
-
-