Class MetadataTransfer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.aether.transfer.MetadataTransferException getException()
      Gets the exception that occurred during the transfer (if any).
      java.io.File getFile()
      Gets the local file the metadata is downloaded to or uploaded from.
      org.eclipse.aether.metadata.Metadata getMetadata()
      Gets the metadata being transferred.
      MetadataTransfer setException​(org.eclipse.aether.transfer.MetadataTransferException exception)
      Sets the exception that occurred during the transfer.
      MetadataTransfer setFile​(java.io.File file)
      Sets the local file the metadata is downloaded to or uploaded from.
      MetadataTransfer setMetadata​(org.eclipse.aether.metadata.Metadata metadata)
      Sets the metadata to transfer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMetadata

        public org.eclipse.aether.metadata.Metadata getMetadata()
        Gets the metadata being transferred.
        Returns:
        The metadata being transferred or null if not set.
      • setMetadata

        public MetadataTransfer setMetadata​(org.eclipse.aether.metadata.Metadata metadata)
        Sets the metadata to transfer.
        Parameters:
        metadata - The metadata, may be null.
        Returns:
        This transfer for chaining, never null.
      • getFile

        public java.io.File getFile()
        Gets the local file the metadata is downloaded to or uploaded from. In case of a download, a connector should first transfer the bytes to a temporary file and only overwrite the target file once the entire download is completed such that an interrupted/failed download does not corrupt the current file contents.
        Returns:
        The local file or null if not set.
      • setFile

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

        public org.eclipse.aether.transfer.MetadataTransferException getException()
        Gets the exception that occurred during the transfer (if any).
        Specified by:
        getException in class Transfer
        Returns:
        The exception or null if the transfer was successful.
      • setException

        public MetadataTransfer setException​(org.eclipse.aether.transfer.MetadataTransferException exception)
        Sets the exception that occurred during the transfer.
        Parameters:
        exception - The exception, may be null to denote a successful transfer.
        Returns:
        This transfer for chaining, never null.