Class BatchReportClientFactory
- java.lang.Object
-
- fr.gouv.vitam.common.client.VitamClientFactory<BatchReportClient>
-
- fr.gouv.vitam.batch.report.client.BatchReportClientFactory
-
- All Implemented Interfaces:
VitamClientFactoryInterface<BatchReportClient>
public class BatchReportClientFactory extends VitamClientFactory<BatchReportClient>
BatchReportClientFactory
-
-
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.client.VitamClientFactory
clientConfiguration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientConfiguration
changeConfigurationFile(java.lang.String configurationPath)
Change client configuration from a Yaml filesstatic void
changeMode(ClientConfiguration configuration)
BatchReportClient
getClient()
This method returns the correct Client adapted to the business casestatic BatchReportClientFactory
getInstance()
Get the BatchReportClientFactory instance-
Methods inherited from class fr.gouv.vitam.common.client.VitamClientFactory
changeResourcePath, changeServerPort, disableUseAuthorizationFilter, enableUseAuthorizationFilter, getClientConfiguration, getDefaultConfigCient, getDefaultConfigCient, getHttpClient, getHttpClient, getResourcePath, getServiceUrl, getVitamClientType, getVitamThreadPoolExecutor, initialisation, isAllowGzipDecoded, isAllowGzipEncoded, resetConnections, resume, setGzipdecoded, setGzipEncoded, setVitamClientType, shutdown, toString
-
-
-
-
Method Detail
-
getInstance
public static final BatchReportClientFactory getInstance()
Get the BatchReportClientFactory instance- Returns:
- the instance
-
changeConfigurationFile
public static final ClientConfiguration changeConfigurationFile(java.lang.String configurationPath)
Change client configuration from a Yaml files- Parameters:
configurationPath
- the path to the configuration file- Returns:
- ClientConfiguration
-
changeMode
public static final void changeMode(ClientConfiguration configuration)
- Parameters:
configuration
- null for MOCK
-
getClient
public BatchReportClient getClient()
Description copied from interface:VitamClientFactoryInterface
This method returns the correct Client adapted to the business case- Returns:
- the Vitam client
-
-