Class PreferredFileNames
java.lang.Object
org.codehaus.mojo.license.download.PreferredFileNames
An url ->
FileNameEntry
mapping.- Since:
- 1.18
- Author:
- Peter Palaga
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreferredFileNames
getEntryByUrl
(String url) getFileNameBySha1
(String sha1)
-
Constructor Details
-
PreferredFileNames
-
-
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
- Parameters:
sha1
- the checksum to search by- Returns:
- a file name bound the given
sha1
checksum ornull
-
getEntryByUrl
- Parameters:
url
- the URL to query- Returns:
- the preferred
FileNameEntry
for the givenurl
ornull
-