Interface RemoteRepositoryFilter

All Known Implementing Classes:
DefaultRemoteRepositoryFilterManager.Participants, GroupIdRemoteRepositoryFilterSource.GroupIdFilter, PrefixesRemoteRepositoryFilterSource.PrefixesFilter

public interface RemoteRepositoryFilter
Remote repository filter that decides should the given artifact or metadata be accepted (for further processing) from remote repository or not.
Since:
1.9.0
  • Method Details

    • acceptArtifact

      RemoteRepositoryFilter.Result acceptArtifact(RemoteRepository remoteRepository, Artifact artifact)
      Decides should artifact be accepted from given remote repository.
      Parameters:
      remoteRepository - The remote repository, not null.
      artifact - The artifact, not null.
      Returns:
      the result, never null.
    • acceptMetadata

      RemoteRepositoryFilter.Result acceptMetadata(RemoteRepository remoteRepository, Metadata metadata)
      Decides should metadata be accepted from given remote repository.
      Parameters:
      remoteRepository - The remote repository, not null.
      metadata - The artifact, not null.
      Returns:
      the result, never null.