Class XChecksumChecksumExtractor


  • @Singleton
    @Named("x-checksum")
    public class XChecksumChecksumExtractor
    extends ChecksumExtractor
    A component extracting x- non-standard style checksums from response headers. Tried headers (in order):
    • x-checksum-sha1 - Maven Central and other CDNs
    • x-checksum-md5 - Maven Central and other CDNs
    • x-goog-meta-checksum-sha1 - GCS
    • x-goog-meta-checksum-md5 - GCS
    Since:
    1.8.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> extractChecksums​(org.apache.http.HttpResponse response)
      Tries to extract checksums from response headers, if present, otherwise returns null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait