Class XChecksumChecksumExtractor

java.lang.Object
org.eclipse.aether.transport.http.ChecksumExtractor
org.eclipse.aether.transport.http.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 Details

  • Constructor Details

    • XChecksumChecksumExtractor

      public XChecksumChecksumExtractor()
  • Method Details

    • extractChecksums

      public Map<String,String> extractChecksums(org.apache.http.HttpResponse response)
      Description copied from class: ChecksumExtractor
      Tries to extract checksums from response headers, if present, otherwise returns null.
      Specified by:
      extractChecksums in class ChecksumExtractor
    • extractChecksum

      private String extractChecksum(org.apache.http.HttpResponse response, String name)