Class MetadataUpload

    • Constructor Detail

      • MetadataUpload

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

        public MetadataUpload​(org.eclipse.aether.metadata.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.
      • setException

        public MetadataUpload setException​(org.eclipse.aether.transfer.MetadataTransferException exception)
        Description copied from class: MetadataTransfer
        Sets the exception that occurred during the transfer.
        Overrides:
        setException in class MetadataTransfer
        Parameters:
        exception - The exception, may be null to denote a successful transfer.
        Returns:
        This transfer for chaining, never null.
      • toString

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