protected void populateGetObjectRequestHeaders()

in src/main/java/s3NativeClient/com/amazonaws/s3/S3NativeClient.java [346:385]


    protected void populateGetObjectRequestHeaders(final Consumer<HttpHeader> headerConsumer,
            final GetObjectRequest request) {
        // https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
        if (request.ifMatch() != null) {
            headerConsumer.accept(new HttpHeader("If-Match", request.ifMatch()));
        }
        if (request.ifModifiedSince() != null) {
            headerConsumer.accept(new HttpHeader("If-Modified-Since",
                    DateTimeFormatter.RFC_1123_DATE_TIME.format(request.ifModifiedSince())));
        }
        if (request.ifNoneMatch() != null) {
            headerConsumer.accept(new HttpHeader("If-None-Match", request.ifNoneMatch()));
        }
        if (request.ifUnmodifiedSince() != null) {
            headerConsumer.accept(new HttpHeader("If-Unmodified-Since",
                    DateTimeFormatter.RFC_1123_DATE_TIME.format(request.ifUnmodifiedSince())));
        }
        if (request.range() != null) {
            headerConsumer.accept(new HttpHeader("Range", request.range()));
        }
        if (request.sSECustomerAlgorithm() != null) {
            headerConsumer.accept(
                    new HttpHeader("x-amz-server-side-encryption-customer-algorithm", request.sSECustomerAlgorithm()));
        }
        if (request.sSECustomerKey() != null) {
            headerConsumer
                    .accept(new HttpHeader("x-amz-server-side-encryption-customer-key", request.sSECustomerKey()));
        }
        if (request.sSECustomerKeyMD5() != null) {
            headerConsumer.accept(
                    new HttpHeader("x-amz-server-side-encryption-customer-key-MD5", request.sSECustomerKeyMD5()));
        }
        if (request.requestPayer() != null) {
            headerConsumer.accept(new HttpHeader("x-amz-request-payer", request.requestPayer().name()));
        }
        if (request.expectedBucketOwner() != null) {
            headerConsumer.accept(new HttpHeader("x-amz-expected-bucket-owner", request.expectedBucketOwner()));
        }
        // in progress, but shape of method left here
    }