Class MetadataDownload

    • Field Detail

      • checksumPolicy

        private java.lang.String checksumPolicy
      • context

        private java.lang.String context
    • Constructor Detail

      • MetadataDownload

        public MetadataDownload()
        Creates a new uninitialized download.
      • MetadataDownload

        public MetadataDownload​(Metadata metadata,
                                java.lang.String context,
                                java.io.File file,
                                java.lang.String checksumPolicy)
        Creates a new download with the specified properties.
        Parameters:
        metadata - The metadata to download, may be null.
        context - The context in which this download is performed, may be null.
        file - The local file to download the metadata to, may be null.
        checksumPolicy - The checksum policy, may be null.
    • Method Detail

      • setFile

        public MetadataDownload 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.
      • getChecksumPolicy

        public java.lang.String getChecksumPolicy()
        Gets the checksum policy for this transfer.
        Returns:
        The checksum policy, never null.
      • setChecksumPolicy

        public MetadataDownload setChecksumPolicy​(java.lang.String checksumPolicy)
        Sets the checksum policy for this transfer.
        Parameters:
        checksumPolicy - The checksum policy, may be null.
        Returns:
        This transfer for chaining, never null.
      • getRequestContext

        public java.lang.String getRequestContext()
        Gets the context of this transfer.
        Returns:
        The context id, never null.
      • setRequestContext

        public MetadataDownload setRequestContext​(java.lang.String context)
        Sets the request context of this transfer.
        Parameters:
        context - The context id, may be null.
        Returns:
        This transfer for chaining, never null.
      • getRepositories

        public java.util.List<RemoteRepository> getRepositories()
        Gets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. a repository manager).
        Returns:
        The remote repositories being aggregated, never null.
      • setRepositories

        public MetadataDownload setRepositories​(java.util.List<RemoteRepository> repositories)
        Sets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. a repository manager).
        Parameters:
        repositories - The remote repositories being aggregated, may be null.
        Returns:
        This transfer for chaining, never null.
      • setListener

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