Class ChecksumExtractorStrategy

java.lang.Object
org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy

public abstract class ChecksumExtractorStrategy extends Object
Checksum extractor strategy, that aims for given type of included checksum.
Since:
2.0.0
  • Constructor Details

  • Method Details

    • extractChecksums

      Extract checksums using given getter, if possible, or null.

      The supplied headerGetter function should provide access to given transport response HTTP Headers in some common way, like for example returning first header value, or null if header not present.

      Parameters:
      headerGetter - A function that provides access to response HTTP Headers, never null.
      Returns:
      Map of extracted checksums, or null if none extracted.