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
-
public class StoragePutRequest extends StorageObjectRequest
Holds every needed parameters that may be needed to put an object on the distant storage offer.
-
-
Constructor Summary
Constructors Constructor Description StoragePutRequest(java.lang.Integer tenantId, java.lang.String type, java.lang.String guid, java.lang.String digestAlgorithm, java.io.InputStream dataStream)
Initialize the needed parameters for put requests of an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getDataStream()
Gets the dataStreamjava.lang.String
getDigestAlgorithm()
Gets the digestAlgorithmlong
getSize()
void
setSize(long size)
java.lang.String
toString()
-
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 Detail
-
StoragePutRequest
public StoragePutRequest(java.lang.Integer tenantId, java.lang.String type, java.lang.String guid, java.lang.String digestAlgorithm, java.io.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 Detail
-
getDigestAlgorithm
public java.lang.String getDigestAlgorithm()
Gets the digestAlgorithm- Returns:
- the digestAlgorithm
-
getDataStream
public java.io.InputStream getDataStream()
Gets the dataStream- Returns:
- the dataStream
-
getSize
public long getSize()
-
setSize
public void setSize(long size)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classStorageObjectRequest
-
-