Class UploadMetadata

java.lang.Object
com.blockchyp.client.dto.UploadMetadata
All Implemented Interfaces:
ITimeoutRequest

public class UploadMetadata extends Object implements ITimeoutRequest
Models information needed to process a file upload.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name of file to be uploaded.
    int
    Gets the size of the file to be uploaded in bytes.
    int
    Gets the request timeout in seconds.
    Gets optional id used to track status and progress of an upload while in progress.
    boolean
    Gets whether or not to route transaction to the test gateway.
    void
    Sets the name of file to be uploaded.
    void
    setFileSize(int value)
    Sets the size of the file to be uploaded in bytes.
    void
    setTest(boolean value)
    Sets whether or not to route transaction to the test gateway.
    void
    setTimeout(int value)
    Sets the request timeout in seconds.
    void
    Sets optional id used to track status and progress of an upload while in progress.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getTimeout in interface ITimeoutRequest
      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:
      isTest in interface ITimeoutRequest
      Returns:
      whether or not to route transaction to the test gateway.
    • setUploadId

      public void setUploadId(String value)
      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

      public String 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

      public void setFileName(String value)
      Sets the name of file to be uploaded.
      Parameters:
      value - the name of file to be uploaded.
    • getFileName

      public String getFileName()
      Gets the name of file to be uploaded.
      Returns:
      the name of file to be uploaded.