Class PreferredFileNames

java.lang.Object
org.codehaus.mojo.license.download.PreferredFileNames

public class PreferredFileNames extends Object
An url -> FileNameEntry mapping.
Since:
1.18
Author:
Peter Palaga
  • Constructor Details

  • Method Details

    • build

      public static PreferredFileNames build(File licensesOutputDirectory, Map<String,String> licenseUrlFileNames)
      Parameters:
      licensesOutputDirectory -
      licenseUrlFileNames -
      Returns:
      a new PreferredFileNames built of AbstractDownloadLicensesMojo.licenseUrlFileNames
    • getFileNameBySha1

      public String getFileNameBySha1(String sha1)
      Parameters:
      sha1 - the checksum to search by
      Returns:
      a file name bound the given sha1 checksum or null
    • getEntryByUrl

      public FileNameEntry getEntryByUrl(String url)
      Parameters:
      url - the URL to query
      Returns:
      the preferred FileNameEntry for the given url or null