Interface SiegfriedClient
- All Superinterfaces:
AutoCloseable,MockOrRestClient,VitamAutoCloseable
- All Known Implementing Classes:
SiegfriedClientRest
Siegfried client interface
-
Method Summary
Modifier and TypeMethodDescriptionRequestResponse<com.fasterxml.jackson.databind.JsonNode>analysePath(Path filePath) Call siegfried instance to analyse the given file and format a Json responseRequestResponse<com.fasterxml.jackson.databind.JsonNode>Call Siegfried instance to get disponibility and versionMethods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
Method Details
-
analysePath
RequestResponse<com.fasterxml.jackson.databind.JsonNode> analysePath(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException Call siegfried instance to analyse the given file and format a Json response- Parameters:
filePath- The file path- Returns:
- the identified format embedded in a RequestResponse
- Throws:
FormatIdentifierTechnicalException- if some error occursFormatIdentifierNotFoundException
-
status
RequestResponse<com.fasterxml.jackson.databind.JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException Call Siegfried instance to get disponibility and version- Parameters:
filePath- path to an empty folder (can be null)- Returns:
- the identified version embedded in a RequestResponse
- Throws:
FormatIdentifierTechnicalExceptionFormatIdentifierNotFoundException
-