Interface SiegfriedClient
-
- All Superinterfaces:
java.lang.AutoCloseable,MockOrRestClient,VitamAutoCloseable
- All Known Implementing Classes:
SiegfriedClientRest
public interface SiegfriedClient extends MockOrRestClient
Siegfried client interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestResponse<com.fasterxml.jackson.databind.JsonNode>analysePath(java.nio.file.Path filePath)Call siegfried instance to analyse the given file and format a Json responseRequestResponse<com.fasterxml.jackson.databind.JsonNode>status(java.nio.file.Path filePath)Call Siegfried instance to get disponibility and version-
Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
-
-
-
Method Detail
-
analysePath
RequestResponse<com.fasterxml.jackson.databind.JsonNode> analysePath(java.nio.file.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(java.nio.file.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
-
-