Class IngestExternalImpl
java.lang.Object
fr.gouv.vitam.ingest.external.core.IngestExternalImpl
- All Implemented Interfaces:
IngestExternal
Implementation of IngestExtern
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIngestExternalImpl(IngestExternalConfiguration config, FormatIdentifierFactory formatIdentifierFactory, IngestInternalClientFactory ingestInternalClientFactory, ManifestDigestValidator manifestDigestValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleResponseWithATR(GUID operationId, javax.ws.rs.container.AsyncResponse asyncResponse, String entity) preUploadAndResume(InputStream input, String workflowIdentifier, GUID guid, String xAction, javax.ws.rs.container.AsyncResponse asyncResponse) upload(PreUploadResume preUploadResume, String xAction, GUID guid, String manifestDigestValue, String manifestDigestAlgo) upload the file -- store in local, scan for viruses and then check for supported format (ZIP, TAR, ...)
-
Field Details
-
INGEST_INT_UPLOAD
- See Also:
-
-
Constructor Details
-
IngestExternalImpl
public IngestExternalImpl(IngestExternalConfiguration config, FormatIdentifierFactory formatIdentifierFactory, IngestInternalClientFactory ingestInternalClientFactory, ManifestDigestValidator manifestDigestValidator)
-
-
Method Details
-
preUploadAndResume
public PreUploadResume preUploadAndResume(InputStream input, String workflowIdentifier, GUID guid, String xAction, javax.ws.rs.container.AsyncResponse asyncResponse) throws IngestExternalException, VitamClientException - Specified by:
preUploadAndResumein interfaceIngestExternal- Throws:
IngestExternalExceptionVitamClientException
-
upload
public StatusCode upload(PreUploadResume preUploadResume, String xAction, GUID guid, String manifestDigestValue, String manifestDigestAlgo) throws IngestExternalException Description copied from interface:IngestExternalupload the file -- store in local, scan for viruses and then check for supported format (ZIP, TAR, ...)- Specified by:
uploadin interfaceIngestExternal- Parameters:
preUploadResume- informations returned- Returns:
- Response containing as InputStream the ArchiveTransferReply in XML format
- Throws:
IngestExternalException- thrown if an error occurred in workflow
-
handleResponseWithATR
-