Class DefaultChecksumExtractor
java.lang.Object
org.eclipse.aether.internal.impl.transport.http.DefaultChecksumExtractor
- All Implemented Interfaces:
ChecksumExtractor
@Singleton
@Named
public final class DefaultChecksumExtractor
extends Object
implements ChecksumExtractor
Checksum extractor.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultChecksumExtractor
-
-
Method Details
-
extractChecksums
Description copied from interface:ChecksumExtractor
Extract checksums using given getter, if possible, ornull
.The supplied
headerGetter
function should provide access to given transport response HTTP Headers in some common way, like for example returning first header value, ornull
if header not present.- Specified by:
extractChecksums
in interfaceChecksumExtractor
- Parameters:
headerGetter
- A function that provides access to response HTTP Headers, nevernull
.- Returns:
- Map of extracted checksums, or
null
if none extracted.
-