Class ChecksumExtractorStrategy
java.lang.Object
org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy
- Direct Known Subclasses:
Nx2ChecksumExtractor
,XChecksumExtractor
Checksum extractor strategy, that aims for given type of included checksum.
- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ChecksumExtractorStrategy
public ChecksumExtractorStrategy()
-
-
Method Details
-
extractChecksums
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.- Parameters:
headerGetter
- A function that provides access to response HTTP Headers, nevernull
.- Returns:
- Map of extracted checksums, or
null
if none extracted.
-