Class IngestExternalImpl
java.lang.Object
fr.gouv.vitam.ingest.external.core.IngestExternalImpl
- All Implemented Interfaces:
IngestExternal
Implementation of IngestExtern
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIngestExternalImpl
(IngestExternalConfiguration config, FormatIdentifierFactory formatIdentifierFactory, IngestInternalClientFactory ingestInternalClientFactory, ManifestDigestValidator manifestDigestValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleResponseWithATR
(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:
preUploadAndResume
in interfaceIngestExternal
- Throws:
IngestExternalException
VitamClientException
-
upload
public StatusCode upload(PreUploadResume preUploadResume, String xAction, GUID guid, String manifestDigestValue, String manifestDigestAlgo) throws IngestExternalException Description copied from interface:IngestExternal
upload the file -- store in local, scan for viruses and then check for supported format (ZIP, TAR, ...)- Specified by:
upload
in 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
-