Class XChecksumExtractor
java.lang.Object
org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy
org.eclipse.aether.internal.impl.transport.http.XChecksumExtractor
@Singleton
@Named("xChecksum")
public final class XChecksumExtractor
extends ChecksumExtractorStrategy
Generic checksum extractor that goes for "X-" headers.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
XChecksumExtractor
public XChecksumExtractor()
-
-
Method Details
-
extractChecksums
Description copied from class:ChecksumExtractorStrategy
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.- Overrides:
extractChecksums
in classChecksumExtractorStrategy
- Parameters:
headerGetter
- A function that provides access to response HTTP Headers, nevernull
.- Returns:
- Map of extracted checksums, or
null
if none extracted.
-