Class AccessExternalClientFactory
java.lang.Object
fr.gouv.vitam.common.external.client.VitamClientFactory<AccessExternalClient>
fr.gouv.vitam.access.external.client.AccessExternalClientFactory
- All Implemented Interfaces:
VitamClientFactoryInterface<AccessExternalClient>
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
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidchangeMode(ClientConfiguration configuration) JUnit only!!static voidchangeMode(String configurationFile) This method returns the correct Client adapted to the business casestatic final AccessExternalClientFactoryGet the AccessClientFactory instanceMethods 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
-
Constructor Details
-
AccessExternalClientFactory
protected AccessExternalClientFactory()
-
-
Method Details
-
getInstance
Get the AccessClientFactory instance- Returns:
- the instance
-
getClient
Description copied from interface:VitamClientFactoryInterfaceThis method returns the correct Client adapted to the business case- Returns:
- the Vitam client
-
changeMode
JUnit only!!- Parameters:
configuration- null for MOCK
-
changeMode
-