@Singleton @Named(value="x-checksum") public class XChecksumChecksumExtractor extends ChecksumExtractor
x-
non-standard style checksums from response headers.
Tried headers (in order):
x-checksum-sha1
- Maven Central and other CDNsx-checksum-md5
- Maven Central and other CDNsx-goog-meta-checksum-sha1
- GCSx-goog-meta-checksum-md5
- GCSConstructor and Description |
---|
XChecksumChecksumExtractor() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
extractChecksums(org.apache.http.HttpResponse response)
Tries to extract checksums from response headers, if present, otherwise returns
null . |
prepareRequest, retryWithoutExtractor
public static final String NAME
public XChecksumChecksumExtractor()
public Map<String,String> extractChecksums(org.apache.http.HttpResponse response)
ChecksumExtractor
null
.extractChecksums
in class ChecksumExtractor
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.