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 extractingx-
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
- GCS
- Since:
- 1.8.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description XChecksumChecksumExtractor()
-
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 returnsnull
.-
Methods inherited from class org.eclipse.aether.transport.http.ChecksumExtractor
prepareRequest, retryWithoutExtractor
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XChecksumChecksumExtractor
public XChecksumChecksumExtractor()
-
-
Method Detail
-
extractChecksums
public java.util.Map<java.lang.String,java.lang.String> extractChecksums(org.apache.http.HttpResponse response)
Description copied from class:ChecksumExtractor
Tries to extract checksums from response headers, if present, otherwise returnsnull
.- Specified by:
extractChecksums
in classChecksumExtractor
-
-