Class MetadataUpload

    • Constructor Detail

      • MetadataUpload

        public MetadataUpload()
        Creates a new uninitialized upload.
      • MetadataUpload

        public MetadataUpload​(Metadata metadata,
                              java.io.File file)
        Creates a new upload with the specified properties.
        Parameters:
        metadata - The metadata to upload, may be null.
        file - The local file to upload the metadata from, may be null.
    • Method Detail

      • setFile

        public MetadataUpload setFile​(java.io.File file)
        Description copied from class: MetadataTransfer
        Sets the local file the metadata is downloaded to or uploaded from.
        Overrides:
        setFile in class MetadataTransfer
        Parameters:
        file - The local file, may be null.
        Returns:
        This transfer for chaining, never null.
      • setListener

        public MetadataUpload setListener​(TransferListener listener)
        Description copied from class: Transfer
        Sets the listener that is to be notified during the transfer.
        Overrides:
        setListener in class Transfer
        Parameters:
        listener - The transfer listener to notify, may be null if none.
        Returns:
        This transfer for chaining, never null.
      • setTrace

        public MetadataUpload setTrace​(RequestTrace trace)
        Description copied from class: Transfer
        Sets the trace information that describes the higher level request/operation in which this transfer is issued.
        Overrides:
        setTrace in class Transfer
        Parameters:
        trace - The trace information about the higher level operation, may be null.
        Returns:
        This transfer for chaining, never null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object