public final class ChecksumsEnabledValidator extends Object
SyncChecksumValidationInterceptor
and
AsyncChecksumValidationInterceptor
to determine if trailing checksums
should be enabled for a given request.Modifier and Type | Method and Description |
---|---|
static boolean |
trailingChecksumsEnabled(ClientType expectedClientType,
ExecutionAttributes executionAttributes,
Map<String,List<String>> headers)
Validates that trailing checksums should be enabled based on
ClientType and the presence
or S3 specific headers. |
public static boolean trailingChecksumsEnabled(ClientType expectedClientType, ExecutionAttributes executionAttributes, Map<String,List<String>> headers)
ClientType
and the presence
or S3 specific headers.expectedClientType
- - The expected client type for enabling checksumsexecutionAttributes
- - ExecutionAttributes
to determine the actual client typeheaders
- A map of headers for a given requestCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.