Class ChecksumExtractorStrategy


  • public abstract class ChecksumExtractorStrategy
    extends java.lang.Object
    Checksum extractor strategy, that aims for given type of included checksum.
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> extractChecksums​(java.util.function.Function<java.lang.String,​java.lang.String> headerGetter)
      Extract checksums using given getter, if possible, or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • extractChecksums

        public java.util.Map<java.lang.String,​java.lang.String> extractChecksums​(java.util.function.Function<java.lang.String,​java.lang.String> headerGetter)
        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.