Class FilteringRepositoryConnector

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, RepositoryConnector

    public final class FilteringRepositoryConnector
    extends java.lang.Object
    implements RepositoryConnector
    A filtering connector that filter transfers using remote repository filter and delegates to another connector.
    Since:
    1.9.0
    • Method Detail

      • close

        public void close()
        Description copied from interface: RepositoryConnector
        Closes this connector and frees any network resources associated with it. Once closed, a connector must not be used for further transfers, any attempt to do so would yield a IllegalStateException or similar. Closing an already closed connector is harmless and has no effect.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface RepositoryConnector
      • get

        public void get​(java.util.Collection<? extends ArtifactDownload> artifactDownloads,
                        java.util.Collection<? extends MetadataDownload> metadataDownloads)
        Description copied from interface: RepositoryConnector
        Performs the specified downloads. If a download fails, the connector stores the underlying exception in the download object such that callers can inspect the result via ArtifactTransfer.getException() and MetadataTransfer.getException(), respectively. If reasonable, a connector should continue to process the remaining downloads after an error to retrieve as many items as possible. The connector may perform the transfers concurrently and in any order.
        Specified by:
        get in interface RepositoryConnector
        Parameters:
        artifactDownloads - The artifact downloads to perform, may be null or empty.
        metadataDownloads - The metadata downloads to perform, may be null or empty.
      • put

        public void put​(java.util.Collection<? extends ArtifactUpload> artifactUploads,
                        java.util.Collection<? extends MetadataUpload> metadataUploads)
        Description copied from interface: RepositoryConnector
        Performs the specified uploads. If an upload fails, the connector stores the underlying exception in the upload object such that callers can inspect the result via ArtifactTransfer.getException() and MetadataTransfer.getException(), respectively. The connector may perform the transfers concurrently and in any order.
        Specified by:
        put in interface RepositoryConnector
        Parameters:
        artifactUploads - The artifact uploads to perform, may be null or empty.
        metadataUploads - The metadata uploads to perform, may be null or empty.
      • toString

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