Package com.blockchyp.client.dto
Class UploadMetadata
java.lang.Object
com.blockchyp.client.dto.UploadMetadata
- All Implemented Interfaces:
ITimeoutRequest
Models information needed to process a file upload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of file to be uploaded.intGets the size of the file to be uploaded in bytes.intGets the request timeout in seconds.Gets optional id used to track status and progress of an upload while in progress.booleanisTest()Gets whether or not to route transaction to the test gateway.voidsetFileName(String value) Sets the name of file to be uploaded.voidsetFileSize(int value) Sets the size of the file to be uploaded in bytes.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTimeout(int value) Sets the request timeout in seconds.voidsetUploadId(String value) Sets optional id used to track status and progress of an upload while in progress.
-
Constructor Details
-
UploadMetadata
public UploadMetadata()
-
-
Method Details
-
setTimeout
public void setTimeout(int value) Sets the request timeout in seconds.- Parameters:
value- the request timeout in seconds.
-
getTimeout
public int getTimeout()Gets the request timeout in seconds.- Specified by:
getTimeoutin interfaceITimeoutRequest- Returns:
- the request timeout in seconds.
-
setTest
public void setTest(boolean value) Sets whether or not to route transaction to the test gateway.- Parameters:
value- whether or not to route transaction to the test gateway.
-
isTest
public boolean isTest()Gets whether or not to route transaction to the test gateway.- Specified by:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to route transaction to the test gateway.
-
setUploadId
Sets optional id used to track status and progress of an upload while in progress.- Parameters:
value- optional id used to track status and progress of an upload while in progress.
-
getUploadId
Gets optional id used to track status and progress of an upload while in progress.- Returns:
- optional id used to track status and progress of an upload while in progress.
-
setFileSize
public void setFileSize(int value) Sets the size of the file to be uploaded in bytes.- Parameters:
value- the size of the file to be uploaded in bytes.
-
getFileSize
public int getFileSize()Gets the size of the file to be uploaded in bytes.- Returns:
- the size of the file to be uploaded in bytes.
-
setFileName
Sets the name of file to be uploaded.- Parameters:
value- the name of file to be uploaded.
-
getFileName
Gets the name of file to be uploaded.- Returns:
- the name of file to be uploaded.
-