Class StoragePutRequest
java.lang.Object
fr.gouv.vitam.storage.driver.model.StorageRequest
fr.gouv.vitam.storage.driver.model.StorageObjectRequest
fr.gouv.vitam.storage.driver.model.StoragePutRequest
Holds every needed parameters that may be needed to put an object on the
distant storage offer.
-
Constructor Summary
ConstructorDescriptionStoragePutRequest
(Integer tenantId, String type, String guid, String digestAlgorithm, InputStream dataStream) Initialize the needed parameters for put requests of an object. -
Method Summary
Methods inherited from class fr.gouv.vitam.storage.driver.model.StorageObjectRequest
getGuid
Methods inherited from class fr.gouv.vitam.storage.driver.model.StorageRequest
getTenantId, getType
-
Constructor Details
-
StoragePutRequest
public StoragePutRequest(Integer tenantId, String type, String guid, String digestAlgorithm, InputStream dataStream) Initialize the needed parameters for put requests of an object.- Parameters:
tenantId
- request tenantIdtype
- the typeguid
- the object guiddigestAlgorithm
- the object digestAlgorithmdataStream
- data stream of the object to put in offer
-
-
Method Details
-
getDigestAlgorithm
Gets the digestAlgorithm- Returns:
- the digestAlgorithm
-
getDataStream
Gets the dataStream- Returns:
- the dataStream
-
getSize
public long getSize() -
setSize
public void setSize(long size) -
toString
- Overrides:
toString
in classStorageObjectRequest
-