Package com.artipie.rpm
Class NamingPolicy.HashPrefixed
java.lang.Object
com.artipie.rpm.NamingPolicy.HashPrefixed
- All Implemented Interfaces:
NamingPolicy
- Enclosing interface:
NamingPolicy
Add hash prefix to names.
- Since:
- 0.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.artipie.rpm.NamingPolicy
NamingPolicy.HashPrefixed
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HashPrefixed
Ctor.- Parameters:
dgst
- One of the supported digest algorithms
-
-
Method Details
-
name
Description copied from interface:NamingPolicy
Name for source with its content, without file extension.- Specified by:
name
in interfaceNamingPolicy
- Parameters:
source
- Metadata file namecontent
- Metadata file content- Returns:
- File name
- Throws:
IOException
- On error
-
fullName
Description copied from interface:NamingPolicy
Full relative path for the metadata source file, with extension. This path is build as `metadata/[prefix]-[sourse-name].xml.gz`. Can be used as a storage key.- Specified by:
fullName
in interfaceNamingPolicy
- Parameters:
source
- Source metadataprefix
- Source prefix- Returns:
- File name
-